---
title: "Week Strip"
description: "One row of days with previous and next buttons, for agendas and bookings. It shows a week or a few days, with dots for events."
url: https://gelatinui.com/components/week-strip
markdown_url: https://gelatinui.com/components/week-strip.md
access: free
install: "npx shadcn@latest add @gelatin-ui/week-strip"
registry_item: https://gelatinui.com/r/week-strip.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Week Strip

> One row of days with previous and next buttons, for agendas and bookings. It shows a week or a few days, with dots for events.

Page: https://gelatinui.com/components/week-strip

## When to use it

Best for: Picking a day from one row of a week or a few days, with paging.

- Use it above a list of times or events for the picked day.
- Use `visibleDuration={{ days: 5 }}` and `step={{ weeks: 1 }}` for a work week.
- Use `CalendarCellIndicator` in a day to show events.

## When not to use it

- To show a whole month, use a [Calendar](https://gelatinui.com/components/calendar.md).
- For a start date and an end date, use a [Range Calendar](https://gelatinui.com/components/range-calendar.md).

## Notes for agents

- It is the Calendar component with one week visible, so every Calendar prop works.
- Values come from `@internationalized/date`, such as `parseDate("2026-10-22")`.
- The locale sets the first day of the week. `firstDayOfWeek` overrides it.
- With no children it renders `WeekStripHeader` and `WeekStripGrid`.

## Anatomy

```text
WeekStrip
├─ WeekStripHeader (0..n)
├─ WeekStripGrid (0..n)
└─ WeekStripDay (0..n)
```

## API reference

### WeekStrip

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `CalendarValueType<T \| null, M>` |  | The current value (controlled). |
| `defaultValue` | `CalendarValueType<T \| null, M>` |  | The default value (uncontrolled). |
| `aria-label` | `string` |  | Defines a string value that labels the current element. |
| `aria-labelledby` | `string` |  | Identifies the element (or elements) that labels the current element. |
| `aria-describedby` | `string` |  | Identifies the element (or elements) that describes the object. |
| `aria-details` | `string` |  | Identifies the element (or elements) that provide a detailed, extended description for the object. |
| `id` | `string` |  | The element's unique identifier. See MDN. |
| `dir` | `string` |  |  |
| `lang` | `string` |  |  |
| `hidden` | `boolean` |  |  |
| `inert` | `boolean` |  |  |
| `translate` | `"no" \| "yes"` |  |  |
| `suppressHydrationWarning` | `boolean` |  | A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs. |
| `onClick` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onClickCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onAuxClick` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onContextMenu` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onDoubleClick` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseDown` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseEnter` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseLeave` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseMove` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseOut` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseOver` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseUp` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLDivElement>` |  |  |
| `onTouchCancel` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchEnd` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchMove` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchStart` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLDivElement>` |  |  |
| `onPointerDown` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerMove` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerUp` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerCancel` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerEnter` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerLeave` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerOver` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerOut` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLDivElement>` |  |  |
| `onScroll` | `UIEventHandler<HTMLDivElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLDivElement>` |  |  |
| `onWheel` | `WheelEventHandler<HTMLDivElement>` |  |  |
| `onWheelCapture` | `WheelEventHandler<HTMLDivElement>` |  |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLDivElement>` |  |  |
| `onTransitionCancel` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionCancelCapture` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionEnd` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionEndCapture` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionRun` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionRunCapture` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionStart` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `onTransitionStartCapture` | `TransitionEventHandler<HTMLDivElement>` |  |  |
| `style` | `StyleOrFunction<CalendarRenderProps<M>>` |  | The inline style for the element. A function may be provided to compute the style based on component state. |
| `children` | `ChildrenOrFunction` |  | The children of the component. A function may be provided to alter the children based on component state. |
| `slot` | `string \| null` |  | A slot name for the component. Slots allow the component to receive props from a parent component. An explicit `null` value indicates that the local props completely override all props received from a parent. |
| `render` | `DOMRenderFunction` |  | Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate. |
| `minValue` | `DateValue \| null` |  | The minimum allowed date that a user may select. |
| `maxValue` | `DateValue \| null` |  | The maximum allowed date that a user may select. |
| `autoFocus` | `boolean` | false | Whether to automatically focus the calendar when it mounts. |
| `focusedValue` | `DateValue \| null` |  | Controls the currently focused date within the calendar. |
| `defaultFocusedValue` | `DateValue \| null` |  | The date that is focused when the calendar first mounts (uncontrolled). |
| `onFocusChange` | `function` |  | Handler that is called when the focused date changes. |
| `pageBehavior` | `PageBehavior` | visible | Controls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration. |
| `firstDayOfWeek` | `"fri" \| "mon" \| "sat" \| "sun" \| "thu" \| "tue" \| "wed"` |  | The day that starts the week. |
| `selectionAlignment` | `"center" \| "end" \| "start"` | 'center' | Determines the alignment of the visible months on initial render based on the current selection or current date if there is no selection. |
| `selectionMode` | `M` | 'single' | Whether single or multiple selection is enabled. |
| `isDateUnavailable` | `function` |  | Callback that is called for each date of the calendar. If it returns true, then the date is unavailable. |
| `visibleDuration` | `DateDuration` | ONE_WEEK | The amount of days that will be displayed at once. This affects how pagination works. |
| `createCalendar` | `function` |  | A function to create a new Calendar object for a given calendar identifier. If not provided, the `createCalendar` function from `@internationalized/date` will be used. |
| `disabled` | `boolean` |  | Turns off the control: no focus, no edits, and the disabled look. |
| `readOnly` | `boolean` |  | The user can focus and read the value, but cannot change it. |
| `invalid` | `boolean` |  | Shows the invalid look and sets `aria-invalid`. |
| `onValueChange` | `function` |  | Runs on each change, with the new value and the Base UI change details. |
| `className` | `string` |  |  |
| `size` | `CalendarSize` |  | The cell size: `sm` 28, `default` 32, `lg` 36. On a touch screen every size grows to 44. |
| `weeksInMonth` | `number \| "auto"` |  | The rows of a month view. Default 6, so the height never changes when the user pages. `"auto"`: the rows of each month (4 to 6, React Aria). Week and day views ignore it. |
| `labels` | `Partial<{ weekNumber: string; }>` |  | The words (`CALENDAR_LABELS`), to translate them. Keep the object stable. |
| `weekdayStyle` | `"long" \| "narrow" \| "short"` | "short" | The weekday name over each day: `short` (default, "Fri"), `narrow` ("F"), `long`. |
| `step` | `DateDuration` |  | How far a page moves: Previous and Next, and the page keys of `WeekStripGrid` (Page Up and Page Down, Up and Down in a day view, and the arrow past the first or last day). Default: the visible days (React Aria). A work week (`visibleDuration={{ days: 5 }}`) sets `{ weeks: 1 }`, so Next and the keys go from Mon – Fri to the next Mon – Fri, not to Sat – Wed. |

### WeekStripHeader

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `"month" \| "range"` | "range" | `range` (default): Previous, the visible days ("19 – 25 Oct 2026", `CalendarHeading` with a short month), Next. `month`: the month at the start ("October 2026", or "Oct – Nov 2026" when the days cross a month) and both buttons at the end. |

### WeekStripGrid

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `dir` | `string` |  |  |
| `lang` | `string` |  |  |
| `hidden` | `boolean` |  |  |
| `inert` | `boolean` |  |  |
| `translate` | `"no" \| "yes"` |  |  |
| `suppressHydrationWarning` | `boolean` |  | A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs. |
| `onClick` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onClickCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onAuxClick` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onContextMenu` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onDoubleClick` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseDown` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseEnter` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseLeave` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseMove` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseOut` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseOver` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseUp` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLTableElement>` |  |  |
| `onTouchCancel` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchEnd` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchMove` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchStart` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLTableElement>` |  |  |
| `onPointerDown` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerMove` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerUp` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerCancel` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerEnter` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerLeave` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerOver` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerOut` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLTableElement>` |  |  |
| `onScroll` | `UIEventHandler<HTMLTableElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLTableElement>` |  |  |
| `onWheel` | `WheelEventHandler<HTMLTableElement>` |  |  |
| `onWheelCapture` | `WheelEventHandler<HTMLTableElement>` |  |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLTableElement>` |  |  |
| `onTransitionCancel` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionCancelCapture` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionEnd` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionEndCapture` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionRun` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionRunCapture` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionStart` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `onTransitionStartCapture` | `TransitionEventHandler<HTMLTableElement>` |  |  |
| `style` | `CSSProperties` |  | The inline style for the element. |
| `render` | `DOMRenderFunction<"table", undefined>` |  | Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate. |
| `offset` | `DateDuration` |  | An offset from the beginning of the visible date range that this CalendarGrid should display. Useful when displaying more than one month at a time. |
| `className` | `string` |  |  |
| `children` | `function` |  | A function from a date to a `WeekStripDay`: an indicator, a `labelSuffix`. Default: `<WeekStripDay date={date} />`. |

### WeekStripDay

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `dir` | `string` |  |  |
| `lang` | `string` |  |  |
| `hidden` | `boolean` |  |  |
| `inert` | `boolean` |  |  |
| `translate` | `"no" \| "yes"` |  |  |
| `suppressHydrationWarning` | `boolean` |  | A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs. |
| `onClick` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onClickCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onAuxClick` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onContextMenu` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onDoubleClick` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseDown` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseEnter` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseLeave` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseMove` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseOut` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseOver` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseUp` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchCancel` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchEnd` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchMove` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchStart` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLTableCellElement>` |  |  |
| `onPointerDown` | `PointerEventHandler` |  |  |
| `onPointerDownCapture` | `PointerEventHandler` |  |  |
| `onPointerMove` | `PointerEventHandler` |  |  |
| `onPointerMoveCapture` | `PointerEventHandler` |  |  |
| `onPointerUp` | `PointerEventHandler` |  |  |
| `onPointerUpCapture` | `PointerEventHandler` |  |  |
| `onPointerCancel` | `PointerEventHandler` |  |  |
| `onPointerCancelCapture` | `PointerEventHandler` |  |  |
| `onPointerEnter` | `PointerEventHandler` |  |  |
| `onPointerLeave` | `PointerEventHandler` |  |  |
| `onPointerOver` | `PointerEventHandler` |  |  |
| `onPointerOverCapture` | `PointerEventHandler` |  |  |
| `onPointerOut` | `PointerEventHandler` |  |  |
| `onPointerOutCapture` | `PointerEventHandler` |  |  |
| `onGotPointerCapture` | `PointerEventHandler` |  |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler` |  |  |
| `onLostPointerCapture` | `PointerEventHandler` |  |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler` |  |  |
| `onScroll` | `UIEventHandler<HTMLTableCellElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLTableCellElement>` |  |  |
| `onWheel` | `WheelEventHandler<HTMLTableCellElement>` |  |  |
| `onWheelCapture` | `WheelEventHandler<HTMLTableCellElement>` |  |  |
| `onAnimationStart` | `AnimationEventHandler` |  |  |
| `onAnimationStartCapture` | `AnimationEventHandler` |  |  |
| `onAnimationEnd` | `AnimationEventHandler` |  |  |
| `onAnimationEndCapture` | `AnimationEventHandler` |  |  |
| `onAnimationIteration` | `AnimationEventHandler` |  |  |
| `onAnimationIterationCapture` | `AnimationEventHandler` |  |  |
| `onTransitionCancel` | `TransitionEventHandler` |  |  |
| `onTransitionCancelCapture` | `TransitionEventHandler` |  |  |
| `onTransitionEnd` | `TransitionEventHandler` |  |  |
| `onTransitionEndCapture` | `TransitionEventHandler` |  |  |
| `onTransitionRun` | `TransitionEventHandler` |  |  |
| `onTransitionRunCapture` | `TransitionEventHandler` |  |  |
| `onTransitionStart` | `TransitionEventHandler` |  |  |
| `onTransitionStartCapture` | `TransitionEventHandler` |  |  |
| `onHoverStart` | `function` |  | Handler that is called when a hover interaction starts. |
| `onHoverEnd` | `function` |  | Handler that is called when a hover interaction ends. |
| `onHoverChange` | `function` |  | Handler that is called when the hover state changes. |
| `style` | `StyleOrFunction<CalendarCellRenderProps>` |  | The inline style for the element. A function may be provided to compute the style based on component state. |
| `render` | `DOMRenderFunction` |  | Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if `<button>` is expected, you cannot render an `<a>`). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate. |
| `date` | `CalendarDate` |  | The date to render in the cell. |
| `className` | `string` |  |  |
| `layout` | `CalendarCellLayout` |  | `inline` (default): the day number in a square cell. `stacked`: a tall cell with two lines from the top (Week Strip: the weekday over the day number). Mark the struck part of a stacked cell yourself (`group-data-unavailable/calendar-cell:line-through`). |
| `labelSuffix` | `string` |  | Words that the screen reader name of the cell adds after the date: "4 free times", "fully booked", "€109". Use it for what an indicator, a price, or a line-through shows. React Aria builds the name itself and drops an `aria-label` prop. |
| `children` | `ReactNode` |  | Content after the weekday and the day number: a `CalendarCellIndicator`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| WeekStrip | `week-strip` |  |  |  |
| WeekStripHeader | `week-strip-header` |  |  |  |
| WeekStripGrid | `week-strip-grid` | `data-invalid` |  |  |
| WeekStripDay | `week-strip-day` | `data-invalid`, `data-pill`, `data-selected`, `data-unavailable` |  | `motion-timing` |

## Usage

Put the header and the grid in the strip. The grid returns one day for each date, with dots for the classes of that day.

```tsx title="class-week.tsx"
"use client";

import { parseDate } from "@internationalized/date";
import { useState } from "react";

import { CalendarCellIndicator } from "@/components/ui/calendar";
import {
  WeekStrip,
  WeekStripDay,
  WeekStripGrid,
  WeekStripHeader,
} from "@/components/ui/week-strip";

/** The yoga classes of the week, by day of the month. */
const CLASSES = new Map<number, 1 | 2 | 3>([
  [17, 2],
  [19, 1],
  [21, 3],
]);

export function ClassWeek() {
  const [day, setDay] = useState(parseDate("2026-11-17"));
  return (
    <WeekStrip aria-label="Class day" value={day} onValueChange={setDay}>
      <WeekStripHeader />
      <WeekStripGrid>
        {(date) => {
          const count = CLASSES.get(date.day);
          return count === undefined ? (
            <WeekStripDay date={date} />
          ) : (
            <WeekStripDay date={date} labelSuffix={`${count} classes`}>
              <CalendarCellIndicator tone="info" count={count} />
            </WeekStripDay>
          );
        }}
      </WeekStripGrid>
    </WeekStrip>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/week-strip
```

It adds 47 registry items: 44 files, 7650 lines, and the npm packages `@base-ui/react`, `@internationalized/date`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `react-aria-components`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Calendar](https://gelatinui.com/components/calendar.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Calendar](https://gelatinui.com/components/calendar.md)
- [Time Slots](https://gelatinui.com/components/time-slots.md)
- [Range Calendar](https://gelatinui.com/components/range-calendar.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Left Arrow, Right Arrow | Move one day back or on. |
| Home, End | Go to the first or the last day of the week. |
| Page Up, Page Down | Go one week back or on. |
| Enter | Picks the focused day. |

## Motion

| Part | Motion |
| --- | --- |
| Selected day | panel · the pill slides to the picked day |
