---
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. To pick a day, the Calendar; a list of dated items with no rows, a ListGroup per day. It takes the caller's width: give it its column, and the week's buttons over it.

## 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>/trail-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 { WeekBoard, WeekBoardItem, WeekBoardGrid, WeekBoardList } from '@/components/ui/goop/week-board';
import { IconButton, IconButtonIcon } from '@/components/ui/goop/icon-button';

<div className="flex flex-col gap-3">
  <div className="flex items-center gap-2">
    <IconButton aria-label="Previous week">
      <IconButtonIcon icon="chevron-left" />
    </IconButton>
    <IconButton aria-label="Next week">
      <IconButtonIcon icon="chevron-right" />
    </IconButton>
    <h2 className="text-lg font-medium">16–20 November</h2>
  </div>
  <WeekBoard
    aria-label="Interviews by room"
    rowHeading="Room"
    days={[
      { id: "2026-11-18", name: "Wed", date: "18", label: "Wednesday 18 November" },
      { id: "2026-11-19", name: "Thu", date: "19", label: "Thursday 19 November", today: true },
      { id: "2026-11-20", name: "Fri", date: "20", label: "Friday 20 November" },
    ]}
    rows={[
      { id: "room-1", label: "Room 1", description: "Ground floor" },
      { id: "room-2", label: "Room 2" },
    ]}
    items={[
      { id: "a", row: "room-1", day: "2026-11-18", start: "09:30", time: "09:30–10:15", title: "Diallo Dental study", description: "Teodora Valk" },
      {
        id: "b",
        row: "room-2",
        day: "2026-11-19",
        start: "13:00",
        time: "13:00–13:45",
        title: "Kvist Bikes interview",
        description: "Dagny Holm",
        status: { variant: "warning", label: "Needs consent" },
      },
    ]}
    onItemSelect={(item) => send(item.id)}
    onAdd={({ day, row }) => send(day.id, row?.id)}
  />
</div>
```

- Fits: schedule (its recipe); schedule: collection (time: slot).
- Also known as: WeekView, Scheduler, ResourceCalendar, Timetable, EventCalendar.
- height, width, padding, gap, corner, border, background, shadow, 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

- data-slot values (to select a part by): week-board, week-board-add, week-board-cell, week-board-corner, week-board-date, week-board-day, week-board-frame, week-board-grid, week-board-item, week-board-item-description, week-board-item-time, week-board-item-title, week-board-list, week-board-list-count, week-board-list-day, week-board-list-heading, week-board-row-heading

### 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: Exclude<StatusVariant, 'default'>; 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, 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 offers an add button that calls it.
- itemProps?: (item: WeekBoardEntry) => HTMLAttributes<HTMLElement> — Your attributes and handlers on an item (`draggable`, `onDragStart`).
- cellProps?: (slot: Required<WeekBoardSlot>) => HTMLAttributes<HTMLTableCellElement> — Your attributes and handlers on a board cell (`onDragOver`, `onDrop`).
- children?: ReactNode — The arrangements; left out, the board from 672 px wide, the list below.
- 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 }

## 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.

## Related

- [Icon button](/themes/trail/components/icon-button): A button whose only visible label is one icon, for toolbars, rows and headers.
- [Properties](/themes/trail/components/properties): A record's properties, each a label and a value edited in place, such as status, assignee and dates, for a record's side panel.
- [Timeline](/themes/trail/components/timeline): A record's history read down a column, newest first, its events grouped by day.
- [Activity item](/themes/trail/components/activity-item): One line of a record's history saying who changed what and when, for an activity feed.
