---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Week board

A week of a schedule, rooms or people down the side and the days across, for a weekly timetable, a booking or rota board, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `WeekBoard`.

## Try it

Press an interview to open it and cancel it; press + in an empty cell to add an open slot there; step to the next or previous week. The arrow keys move between interviews; on a phone the week is a list by day.

The interviews are our own sample, two weeks that alternate; nothing is booked or cancelled anywhere.

## When to use

- A week of a schedule, rooms or people down the side and the days across, for a weekly timetable, a booking or rota board.
- Use it wherever items are placed on the days of a week by row (a timetable, a rota, room bookings), never a table or a grid of cards by hand: it brings the sticky row column, the phone's list by day and the arrow keys. It takes the caller's width: give it its column, and the week's buttons over it. An item's status is its `status` mark.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Week board on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-week-board.json --yes
```

```text
Add the Goop Week board to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { WeekBoardItem, WeekBoardGrid, WeekBoardList } from '@/components/ui/goop/week-board';

import { WeekBoard, WeekBoardPreview } from '@/components/ui/goop/week-board';

function CrewWeek({ onOpen, onAdd }: { onOpen: (title: string) => void; onAdd: (day: string) => void }) {
  return (
    <WeekBoard
      aria-label="Site visits by crew"
      rowHeading="Crew"
      days={[
        { id: '2026-11-16', name: 'Mon', date: '16', label: 'Monday 16 November' },
        { id: '2026-11-17', name: 'Tue', date: '17', label: 'Tuesday 17 November', today: true },
        { id: '2026-11-18', name: 'Wed', date: '18', label: 'Wednesday 18 November' },
      ]}
      rows={[{ id: 'north', label: 'North crew', description: 'Two surveyors' }]}
      items={[
        { id: 'v1', row: 'north', day: '2026-11-17', start: '10:00', time: '10:00–11:00', title: 'Soil samples' },
      ]}
      onItemSelect={(item) => onOpen(item.title)}
      onAdd={({ day }) => onAdd(day.id)}
    />
  );
}

const DAYS = [
  { id: 'sun', name: 'Sun', date: '15' },
  { id: 'mon', name: 'Mon', date: '16' },
  { id: 'tue', name: 'Tue', date: '17' },
  { id: 'wed', name: 'Wed', date: '18' },
  { id: 'thu', name: 'Thu', date: '19' },
];

const CLOCK_12 = (hour: number) => `${hour % 12 || 12} ${hour < 12 ? 'am' : 'pm'}`;
const CLOCK_24 = (hour: number) => `${String(hour).padStart(2, '0')}:00`;

function WeekStartPreview({ mondayFirst, clock24 }: { mondayFirst: boolean; clock24: boolean }) {
  const days = mondayFirst ? DAYS.slice(1) : DAYS.slice(0, 4);
  return (
    <WeekBoardPreview
      days={days}
      hourLabel={clock24 ? CLOCK_24 : CLOCK_12}
      events={[
        { id: 'e1', day: 'mon', start: 450, end: 550, title: 'Kick-off call', time: '7:30 AM' },
        { id: 'e2', day: 'wed', start: 450, end: 480, title: 'Site visit', tone: 'pink' },
      ]}
    />
  );
}
```

- Fits: schedule: collection (time: slot).
- Also known as: WeekView, Scheduler, ResourceCalendar, Timetable, EventCalendar.
- WeekBoardPreview: Put it at the head of a settings section, over the choices it previews, and hand it the days and hour words the chosen setting gives: never draw a week of boxes by hand. Its events are samples: a few short ones in the morning.
- height, width, padding, gap, corner, border, background, text, motion: add no class for these.

## API reference

### Parts

- `WeekBoardItem` — One item; its props: week-board--item.md
- `WeekBoardGrid` — The board
- `WeekBoardList` — The phone's arrangement; its props: week-board--list.md
- `WeekBoardPreview` — A picture of a week for a settings pane; its props: week-board--preview.md

### WeekBoardItem

One item.

```tsx
import { WeekBoardItem } from '@/components/ui/goop/week-board';
```

### Options

- time: string — Its time in the caller's words.
- title: string — Its name: it wraps, never cut.
- description?: string — A second line; cut on one line, named whole while cut.
- status?: WeekBoardStatus — An optional status mark.
- href?: string — A link instead of a button.
- children?: ReactElement — With `asChild`, the caller's link element (with no children of its own).
- Also takes: asChild?: boolean; type?: 'button' | 'submit' | 'reset'; onClick?: (event: MouseEvent) => void; disabled?: boolean
- Types: WeekBoardStatus = { variant: 'info' | 'success' | 'warning' | 'destructive'; label: string }

### WeekBoardList

The phone's arrangement.

```tsx
import { WeekBoardList } from '@/components/ui/goop/week-board';
```

### Options

- headingLevel?: 2 | 3 | 4 | 5 | 6 = 3 — Each day's heading level: 3 (the default), under the page's own heading and the board's.

### WeekBoard: every option

```tsx
import { WeekBoard } from '@/components/ui/goop/week-board';
```

### Options

- aria-label: string — The board's name: the table's and the list's (`Interviews by room`).
- days: readonly WeekBoardDay[] — The day columns, in order.
- rows: readonly WeekBoardRow[] — The rows, in order.
- items: readonly WeekBoardEntry[] — The items; each sits in the cell its `row` and `day` name.
- rowHeading: string — The heading over the rows' column (`Room`).
- empty?: ReactNode = 'Nothing planned' — The words of a day with no items, in the phone list.
- todayLabel?: string = 'Today' — The word that marks today in the phone list (`This month` on a board by month).
- countLabel?: (count: number) => string — A day's count in the phone list, read whole (`3 items`); the number alone is shown.
- addLabel?: (slot: WeekBoardSlot) => string — The name of an empty cell's add button.
- onItemSelect?: (item: WeekBoardEntry) => void — Called with an item when it is pressed (an item with `href` follows its link as well).
- onAdd?: (slot: WeekBoardSlot) => void — Given, each empty cell (and each empty day in the phone list) offers an add button that calls it.
- itemProps?: (item: WeekBoardEntry) => HTMLAttributes<HTMLElement> — The caller's own attributes and handlers on an item (`draggable`, `onDragStart`).
- cellProps?: (slot: Required<WeekBoardSlot>) => HTMLAttributes<HTMLTableCellElement> — The caller's own attributes and handlers on a board cell (`onDragOver`, `onDrop`).
- children?: ReactNode — The arrangements; left out, the board in a box 672 px wide or more and the list in a narrower one.
- Types: WeekBoardDay = { id: string; name: string; date?: string; label?: string; today?: boolean }; WeekBoardRow = { id: string; label: string; description?: string }; WeekBoardEntry = { id: string; row: string; day: string; time: string; start?: string; title: string; description?: string; status?: WeekBoardStatus; href?: string }; WeekBoardSlot = { day: WeekBoardDay; row?: WeekBoardRow }

### WeekBoardPreview

A picture of a week for a settings pane.

```tsx
import { WeekBoardPreview } from '@/components/ui/goop/week-board';
```

### Options

- aria-label?: string — Given, the preview is one picture of that name; left out, it is hidden from a screen reader.
- days: readonly WeekBoardDay[] — The day columns, in order: the setting's week (its first day, its length).
- events: readonly WeekBoardPreviewEvent[] — The sample events, each in the column its `day` names.
- from?: number = 390 — The minute at its top edge (`390`, 6:30, by default); the hours from there show.
- zones?: readonly WeekBoardPreviewZone[] — Hours of other places beside the grid's, in order, each its words over its column; left out, one bare column.
- hourLabel?: (hour: number) => string — An hour's words (0 to 23): the time format (`7 am` by default; `(h) => \`${h}:00\`` for a 24-hour clock).
- hourHeight?: number — An hour's height in px: the calendar's zoom (60 by default; less shows more of the day, more shows less).
- now?: { at: number; label: string } — The time now, in the red words over the hours: its minute from midnight and its words (`8:19 am`).
- badge?: ReactNode = 'Preview' — The caps label at its foot (`Preview`); `null` draws none.
- Types: WeekBoardDay = { id: string; name: string; date?: string; label?: string; today?: boolean }; WeekBoardPreviewEvent = { id: string; day: string; start: number; end: number; title: string; time?: string; tone?: WeekBoardPreviewTone }; WeekBoardPreviewZone = { label: string; offset: number }

## Keyboard

- Tab: move to the next item (or an empty cell's add button), row by row, day by day
- ArrowUp / ArrowDown: move to the item above or below, on into the next row's cell of the same day
- ArrowLeft / ArrowRight: move to the item in the day before or after, in the same row
- Home / End: move to the row's first or last item
- Enter / Space: open the item, or add in an empty cell

## Accessibility

- The native element answers the keyboard.
- hover, active, focus-visible: the browser's own (:hover, :active, :focus-visible): write nothing

## Motion

- The part sets its own motion: add no transition or animation of your own.

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

Shortened to fit: the data-slot values.

## Related

- [Properties](/themes/meadow/components/properties): A record's properties, each a quiet value named by an icon or a label, such as who, where and when, for a record's panel.
- [Timeline](/themes/meadow/components/timeline): A history read down a column, newest first.
- [Activity item](/themes/meadow/components/activity-item): One line of a record's history saying what changed and when, for an activity feed.
- [Chart container](/themes/meadow/components/chart): The card a custom chart is drawn in.
