---
title: "Calendar"
description: "Pick one date or several on a month grid. It can show more than one month, week numbers, dots for events, and other calendar systems."
url: https://gelatinui.com/components/calendar
markdown_url: https://gelatinui.com/components/calendar.md
access: free
install: "npx shadcn@latest add @gelatin-ui/calendar"
registry_item: https://gelatinui.com/r/calendar.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Calendar

> Pick one date or several on a month grid. It can show more than one month, week numbers, dots for events, and other calendar systems.

Page: https://gelatinui.com/components/calendar

## When to use it

Best for: One date or several on a month grid that stays on the page.

- Use it when the grid can stay on the page, such as a booking page.
- Use `selectionMode="multiple"` to pick many dates.
- Use `minValue`, `maxValue`, and `isDateUnavailable` to block dates.
- Use `visibleDuration` for two months, a week, or a few days.

## When not to use it

- For a start date and an end date, use a [Range Calendar](https://gelatinui.com/components/range-calendar.md).
- For a date in a form field with a popup, use a [Date Picker](https://gelatinui.com/components/date-picker.md).
- For a date that people know and can type, use a [Date Field](https://gelatinui.com/components/date-field.md).

## Notes for agents

- `<Calendar />` with no children renders `CalendarMonths`. To add a part under the grid, render `CalendarMonths` yourself and then the part.
- It has no fill and no border. Put it on a Popover, a Card, or the page.
- Values come from `@internationalized/date`, such as `parseDate("2026-10-22")`.
- A month view shows six rows by default, so the height stays the same when people change the month.
- Do not pass `format.era` to `CalendarHeading`. React Aria 3.53.1 turns any era into `short`.
- Children of `CalendarCell` replace the day number. Put the extra meaning in an `aria-label` too.
- `CalendarCellIndicator` draws 1 to 3 dots. Name the dot colors in a legend, so color is not the only signal.
- `showWeekNumbers` goes on `CalendarGrid`. Day views show no week numbers.

## Anatomy

```text
Calendar
├─ CalendarMonths (0..n)
├─ CalendarHeader (0..n)
├─ CalendarHeading (0..n)
├─ CalendarTitle (0..n)
├─ CalendarPrevious (0..n)
├─ CalendarNext (0..n)
├─ CalendarGrid (0..n)
├─ CalendarGridHeader (0..n)
├─ CalendarHeaderCell (0..n)
├─ CalendarGridBody (0..n)
├─ CalendarDayButton (0..n)
├─ CalendarCell (0..n)
├─ CalendarCellIndicator (0..n)
├─ CalendarMonthSelect (0..n)
├─ CalendarYearSelect (0..n)
└─ CalendarError (0..n)
```

## API reference

### Calendar

| 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` | { months: 1 } | 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` | "default" | 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. |

### CalendarMonths

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `weekdayStyle` | `"long" \| "narrow" \| "short"` | 'narrow' | The style of weekday names to display in the calendar grid header, e.g. single letter, abbreviation, or full day name. |
| `showWeekNumbers` | `boolean` |  | A 28px column at the start with the ISO week number of each row, in a row header (`<th scope="row">`, named "week 43" in the locale). Not in React Aria. |
| `children` | `CalendarGridBodyProps["children"]` |  | A function from a date to a `CalendarCell`, for every grid: custom content, indicators, a `labelSuffix`. Default: `<CalendarCell date={date} />`. |
| `headingFormat` | `CalendarHeadingProps["format"]` |  | The format of each `CalendarHeading`. Default: a long month in month views ("October 2026"), a short month in week and day views ("Oct 18 – 24, 2026"), so a range fits the header. |

### CalendarHeader

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### CalendarHeading

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `render` | `DOMRenderFunction<"h1", 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` | 0 | The number of months from the start of the visible range to display. |
| `level` | `number` | 3 | The heading level. |
| `className` | `string` |  |  |
| `format` | `Pick` |  | The date parts of the heading: `Intl.DateTimeFormatOptions`, the parts React Aria reads (`CalendarHeadingFormatOptions`). Default: the long month and the year. |

### CalendarTitle

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `render` | `DOMRenderFunction<"h1", 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. |
| `level` | `number` | 3 | The heading level. |
| `className` | `string` |  |  |

### CalendarPrevious

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `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. |
| `excludeFromTabOrder` | `boolean` |  | Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available. |
| `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. |
| `onClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onAuxClick` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onContextMenu` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onDoubleClick` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseDown` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseEnter` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseLeave` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseMove` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOut` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOver` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseUp` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onTouchCancel` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchEnd` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchMove` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchStart` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onPointerDown` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerMove` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerUp` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerCancel` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerEnter` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerLeave` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOver` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOut` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onScroll` | `UIEventHandler<HTMLButtonElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLButtonElement>` |  |  |
| `onWheel` | `WheelEventHandler<HTMLButtonElement>` |  |  |
| `onWheelCapture` | `WheelEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onTransitionCancel` | `TransitionEventHandler` |  |  |
| `onTransitionCancelCapture` | `TransitionEventHandler` |  |  |
| `onTransitionEnd` | `TransitionEventHandler` |  |  |
| `onTransitionEndCapture` | `TransitionEventHandler` |  |  |
| `onTransitionRun` | `TransitionEventHandler` |  |  |
| `onTransitionRunCapture` | `TransitionEventHandler` |  |  |
| `onTransitionStart` | `TransitionEventHandler` |  |  |
| `onTransitionStartCapture` | `TransitionEventHandler` |  |  |
| `onKeyDown` | `function` |  | Handler that is called when a key is pressed. |
| `onKeyUp` | `function` |  | Handler that is called when a key is released. |
| `onFocus` | `function` |  | Handler that is called when the element receives focus. |
| `onBlur` | `function` |  | Handler that is called when the element loses focus. |
| `onFocusChange` | `function` |  | Handler that is called when the element's focus status changes. |
| `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. |
| `onPress` | `function` |  | Handler that is called when the press is released over the target. |
| `onPressStart` | `function` |  | Handler that is called when a press interaction starts. |
| `onPressEnd` | `function` |  | Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target. |
| `onPressChange` | `function` |  | Handler that is called when the press state changes. |
| `onPressUp` | `function` |  | Handler that is called when a press is released over the target, regardless of whether it started on the target or not. |
| `onClick` | `function` |  | **Not recommended – use `onPress` instead.** `onClick` is an alias for `onPress` provided for compatibility with other libraries. `onPress` provides additional event details for non-mouse interactions. |
| `autoFocus` | `boolean` |  | Whether the element should receive focus on render. |
| `style` | `StyleOrFunction<ButtonRenderProps>` |  | The inline style for the element. A function may be provided to compute the style based on component state. |
| `children` | `ChildrenOrFunction<ButtonRenderProps>` |  | The children of the component. A function may be provided to alter the children 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. |
| `disabled` | `boolean` |  | Turns off the control: no focus, no edits, and the disabled look. |
| `aria-disabled` | `"false" \| "true" \| boolean` |  | Indicates whether the element is disabled to users of assistive technology. |
| `aria-expanded` | `"false" \| "true" \| boolean` |  | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| `aria-haspopup` | `union` |  | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| `aria-controls` | `string` |  | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| `aria-pressed` | `"false" \| "mixed" \| "true" \| boolean` |  | Indicates the current "pressed" state of toggle buttons. |
| `aria-current` | `union` |  | Indicates whether this element represents the current item within a container or set of related elements. |
| `type` | `"button" \| "reset" \| "submit"` | 'button' | The behavior of the button when used in an HTML form. |
| `preventFocusOnPress` | `boolean` |  | Whether to prevent focus from moving to the button when pressing it. Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control. |
| `form` | `string` |  | The `<form>` element to associate the button with. The value of this attribute must be the id of a `<form>` in the same document. See MDN. |
| `formAction` | `string \| function` |  | The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. |
| `formEncType` | `string` |  | Indicates how to encode the form data that is submitted. |
| `formMethod` | `string` |  | Indicates the HTTP method used to submit the form. |
| `formNoValidate` | `boolean` |  | Indicates that the form is not to be validated when it is submitted. |
| `formTarget` | `string` |  | Overrides the target attribute of the button's form owner. |
| `name` | `string` |  | Submitted as a pair with the button's value as part of the form data. |
| `value` | `string` |  | The value associated with the button's name when it's submitted with the form data. |
| `isPending` | `boolean` |  | Whether the button is in a pending state. This disables press and hover events while retaining focusability, and announces the pending state to screen readers. |
| `className` | `string` |  |  |

### CalendarNext

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `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. |
| `excludeFromTabOrder` | `boolean` |  | Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available. |
| `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. |
| `onClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onAuxClick` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onAuxClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onContextMenu` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onContextMenuCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onDoubleClick` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseDown` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseDownCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseEnter` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseLeave` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseMove` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOut` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOutCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOver` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseOverCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseUp` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onMouseUpCapture` | `MouseEventHandler<HTMLButtonElement>` |  |  |
| `onTouchCancel` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchEnd` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchEndCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchMove` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchStart` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onTouchStartCapture` | `TouchEventHandler<HTMLButtonElement>` |  |  |
| `onPointerDown` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerDownCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerMove` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerMoveCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerUp` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerUpCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerCancel` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerCancelCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerEnter` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerLeave` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOver` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOverCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOut` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onPointerOutCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onGotPointerCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onGotPointerCaptureCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onLostPointerCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onLostPointerCaptureCapture` | `PointerEventHandler<HTMLButtonElement>` |  |  |
| `onScroll` | `UIEventHandler<HTMLButtonElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLButtonElement>` |  |  |
| `onWheel` | `WheelEventHandler<HTMLButtonElement>` |  |  |
| `onWheelCapture` | `WheelEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationStart` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationStartCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationEnd` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationEndCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationIteration` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onAnimationIterationCapture` | `AnimationEventHandler<HTMLButtonElement>` |  |  |
| `onTransitionCancel` | `TransitionEventHandler` |  |  |
| `onTransitionCancelCapture` | `TransitionEventHandler` |  |  |
| `onTransitionEnd` | `TransitionEventHandler` |  |  |
| `onTransitionEndCapture` | `TransitionEventHandler` |  |  |
| `onTransitionRun` | `TransitionEventHandler` |  |  |
| `onTransitionRunCapture` | `TransitionEventHandler` |  |  |
| `onTransitionStart` | `TransitionEventHandler` |  |  |
| `onTransitionStartCapture` | `TransitionEventHandler` |  |  |
| `onKeyDown` | `function` |  | Handler that is called when a key is pressed. |
| `onKeyUp` | `function` |  | Handler that is called when a key is released. |
| `onFocus` | `function` |  | Handler that is called when the element receives focus. |
| `onBlur` | `function` |  | Handler that is called when the element loses focus. |
| `onFocusChange` | `function` |  | Handler that is called when the element's focus status changes. |
| `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. |
| `onPress` | `function` |  | Handler that is called when the press is released over the target. |
| `onPressStart` | `function` |  | Handler that is called when a press interaction starts. |
| `onPressEnd` | `function` |  | Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target. |
| `onPressChange` | `function` |  | Handler that is called when the press state changes. |
| `onPressUp` | `function` |  | Handler that is called when a press is released over the target, regardless of whether it started on the target or not. |
| `onClick` | `function` |  | **Not recommended – use `onPress` instead.** `onClick` is an alias for `onPress` provided for compatibility with other libraries. `onPress` provides additional event details for non-mouse interactions. |
| `autoFocus` | `boolean` |  | Whether the element should receive focus on render. |
| `style` | `StyleOrFunction<ButtonRenderProps>` |  | The inline style for the element. A function may be provided to compute the style based on component state. |
| `children` | `ChildrenOrFunction<ButtonRenderProps>` |  | The children of the component. A function may be provided to alter the children 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. |
| `disabled` | `boolean` |  | Turns off the control: no focus, no edits, and the disabled look. |
| `aria-disabled` | `"false" \| "true" \| boolean` |  | Indicates whether the element is disabled to users of assistive technology. |
| `aria-expanded` | `"false" \| "true" \| boolean` |  | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
| `aria-haspopup` | `union` |  | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
| `aria-controls` | `string` |  | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
| `aria-pressed` | `"false" \| "mixed" \| "true" \| boolean` |  | Indicates the current "pressed" state of toggle buttons. |
| `aria-current` | `union` |  | Indicates whether this element represents the current item within a container or set of related elements. |
| `type` | `"button" \| "reset" \| "submit"` | 'button' | The behavior of the button when used in an HTML form. |
| `preventFocusOnPress` | `boolean` |  | Whether to prevent focus from moving to the button when pressing it. Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control. |
| `form` | `string` |  | The `<form>` element to associate the button with. The value of this attribute must be the id of a `<form>` in the same document. See MDN. |
| `formAction` | `string \| function` |  | The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. |
| `formEncType` | `string` |  | Indicates how to encode the form data that is submitted. |
| `formMethod` | `string` |  | Indicates the HTTP method used to submit the form. |
| `formNoValidate` | `boolean` |  | Indicates that the form is not to be validated when it is submitted. |
| `formTarget` | `string` |  | Overrides the target attribute of the button's form owner. |
| `name` | `string` |  | Submitted as a pair with the button's value as part of the form data. |
| `value` | `string` |  | The value associated with the button's name when it's submitted with the form data. |
| `isPending` | `boolean` |  | Whether the button is in a pending state. This disables press and hover events while retaining focusability, and announces the pending state to screen readers. |
| `className` | `string` |  |  |

### CalendarGrid

| 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. |
| `weekdayStyle` | `"long" \| "narrow" \| "short"` | 'narrow' | The style of weekday names to display in the calendar grid header, e.g. single letter, abbreviation, or full day name. |
| `className` | `string` |  |  |
| `children` | `CalendarGridPrimitiveProps["children"]` |  | The header and body (`CalendarGridHeader`, `CalendarGridBody`), or a function from a date to a `CalendarCell`. Default: the styled header and one `CalendarCell` per date. |
| `showWeekNumbers` | `boolean` | false | A 28px column at the start with the ISO week number of each row, in a row header (`<th scope="row">`, named "week 43" in the locale). Not in React Aria. |

### CalendarGridHeader

| 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` |  |  |
| `onClickCapture` | `MouseEventHandler` |  |  |
| `onAuxClick` | `MouseEventHandler` |  |  |
| `onAuxClickCapture` | `MouseEventHandler` |  |  |
| `onContextMenu` | `MouseEventHandler` |  |  |
| `onContextMenuCapture` | `MouseEventHandler` |  |  |
| `onDoubleClick` | `MouseEventHandler` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler` |  |  |
| `onMouseDown` | `MouseEventHandler` |  |  |
| `onMouseDownCapture` | `MouseEventHandler` |  |  |
| `onMouseEnter` | `MouseEventHandler` |  |  |
| `onMouseLeave` | `MouseEventHandler` |  |  |
| `onMouseMove` | `MouseEventHandler` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler` |  |  |
| `onMouseOut` | `MouseEventHandler` |  |  |
| `onMouseOutCapture` | `MouseEventHandler` |  |  |
| `onMouseOver` | `MouseEventHandler` |  |  |
| `onMouseOverCapture` | `MouseEventHandler` |  |  |
| `onMouseUp` | `MouseEventHandler` |  |  |
| `onMouseUpCapture` | `MouseEventHandler` |  |  |
| `onTouchCancel` | `TouchEventHandler` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler` |  |  |
| `onTouchEnd` | `TouchEventHandler` |  |  |
| `onTouchEndCapture` | `TouchEventHandler` |  |  |
| `onTouchMove` | `TouchEventHandler` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler` |  |  |
| `onTouchStart` | `TouchEventHandler` |  |  |
| `onTouchStartCapture` | `TouchEventHandler` |  |  |
| `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<HTMLTableSectionElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLTableSectionElement>` |  |  |
| `onWheel` | `WheelEventHandler` |  |  |
| `onWheelCapture` | `WheelEventHandler` |  |  |
| `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` |  |  |
| `style` | `CSSProperties` |  | The inline style for the element. |
| `render` | `DOMRenderFunction<"thead", 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. |
| `className` | `string` |  |  |
| `children` | `function` |  | A function from a weekday name to a `CalendarHeaderCell`. Default: one styled cell. |

### CalendarHeaderCell

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `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` |  |  |
| `onClickCapture` | `MouseEventHandler` |  |  |
| `onAuxClick` | `MouseEventHandler` |  |  |
| `onAuxClickCapture` | `MouseEventHandler` |  |  |
| `onContextMenu` | `MouseEventHandler` |  |  |
| `onContextMenuCapture` | `MouseEventHandler` |  |  |
| `onDoubleClick` | `MouseEventHandler` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler` |  |  |
| `onMouseDown` | `MouseEventHandler` |  |  |
| `onMouseDownCapture` | `MouseEventHandler` |  |  |
| `onMouseEnter` | `MouseEventHandler` |  |  |
| `onMouseLeave` | `MouseEventHandler` |  |  |
| `onMouseMove` | `MouseEventHandler` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler` |  |  |
| `onMouseOut` | `MouseEventHandler` |  |  |
| `onMouseOutCapture` | `MouseEventHandler` |  |  |
| `onMouseOver` | `MouseEventHandler` |  |  |
| `onMouseOverCapture` | `MouseEventHandler` |  |  |
| `onMouseUp` | `MouseEventHandler` |  |  |
| `onMouseUpCapture` | `MouseEventHandler` |  |  |
| `onTouchCancel` | `TouchEventHandler` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler` |  |  |
| `onTouchEnd` | `TouchEventHandler` |  |  |
| `onTouchEndCapture` | `TouchEventHandler` |  |  |
| `onTouchMove` | `TouchEventHandler` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler` |  |  |
| `onTouchStart` | `TouchEventHandler` |  |  |
| `onTouchStartCapture` | `TouchEventHandler` |  |  |
| `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` |  |  |
| `onScrollCapture` | `UIEventHandler` |  |  |
| `onWheel` | `WheelEventHandler` |  |  |
| `onWheelCapture` | `WheelEventHandler` |  |  |
| `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` |  |  |
| `style` | `CSSProperties` |  | The inline style for the element. |
| `children` | `ReactNode` |  | The children of the component. |
| `render` | `DOMRenderFunction<"th", 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. |
| `className` | `string` |  |  |

### CalendarGridBody

| 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` |  |  |
| `onClickCapture` | `MouseEventHandler` |  |  |
| `onAuxClick` | `MouseEventHandler` |  |  |
| `onAuxClickCapture` | `MouseEventHandler` |  |  |
| `onContextMenu` | `MouseEventHandler` |  |  |
| `onContextMenuCapture` | `MouseEventHandler` |  |  |
| `onDoubleClick` | `MouseEventHandler` |  |  |
| `onDoubleClickCapture` | `MouseEventHandler` |  |  |
| `onMouseDown` | `MouseEventHandler` |  |  |
| `onMouseDownCapture` | `MouseEventHandler` |  |  |
| `onMouseEnter` | `MouseEventHandler` |  |  |
| `onMouseLeave` | `MouseEventHandler` |  |  |
| `onMouseMove` | `MouseEventHandler` |  |  |
| `onMouseMoveCapture` | `MouseEventHandler` |  |  |
| `onMouseOut` | `MouseEventHandler` |  |  |
| `onMouseOutCapture` | `MouseEventHandler` |  |  |
| `onMouseOver` | `MouseEventHandler` |  |  |
| `onMouseOverCapture` | `MouseEventHandler` |  |  |
| `onMouseUp` | `MouseEventHandler` |  |  |
| `onMouseUpCapture` | `MouseEventHandler` |  |  |
| `onTouchCancel` | `TouchEventHandler` |  |  |
| `onTouchCancelCapture` | `TouchEventHandler` |  |  |
| `onTouchEnd` | `TouchEventHandler` |  |  |
| `onTouchEndCapture` | `TouchEventHandler` |  |  |
| `onTouchMove` | `TouchEventHandler` |  |  |
| `onTouchMoveCapture` | `TouchEventHandler` |  |  |
| `onTouchStart` | `TouchEventHandler` |  |  |
| `onTouchStartCapture` | `TouchEventHandler` |  |  |
| `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<HTMLTableSectionElement>` |  |  |
| `onScrollCapture` | `UIEventHandler<HTMLTableSectionElement>` |  |  |
| `onWheel` | `WheelEventHandler` |  |  |
| `onWheelCapture` | `WheelEventHandler` |  |  |
| `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` |  |  |
| `style` | `CSSProperties` |  | The inline style for the element. |
| `render` | `DOMRenderFunction<"tbody", 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. |
| `className` | `string` |  |  |
| `ref` | `Ref<HTMLTableSectionElement>` |  | The `<tbody>`. The component also uses it for the page motion. |
| `children` | `function` |  | A function from a date to a `CalendarCell`. Default: `<CalendarCell date={date} />`. |

### CalendarCell

| 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. |
| `children` | `ChildrenOrFunction` |  | The children of the component. A function may be provided to alter the children 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. |

### CalendarDayButton

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### CalendarCellIndicator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tone` | `"destructive" \| "info" \| "neutral" \| "success" \| "warning"` |  |  |
| `variant` | `"default" \| "muted" \| "ring"` |  |  |
| `count` | `1 \| 2 \| 3` | 1 | How many dots, 1 to 3. Use 3 for "3 or more". |
| `place` | `"bottom" \| "corner"` | "corner" | `corner` (default): 5px dots at the top-end corner. `bottom`: 4px dots under the day number, in the today dot's spot (a Week Strip day with tasks); the today dot hides there. |

### CalendarMonthSelect

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `contentProps` | `Omit<SelectContentProps, "children">` |  | Props of the list popup (`SelectContent`): `side`, `align`, `className`... |
| `size` | `"default" \| "lg" \| "sm" \| "xs"` |  |  |
| `format` | `Pick<DateTimeFormatOptions, "month">` |  | The month names (`Intl` options): `{ month: "short" }` (default, "Oct") or `{ month: "long" }`. |

Also takes every prop of Base UI `Select.Trigger`: https://base-ui.com/react/components/select

### CalendarYearSelect

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `contentProps` | `Omit<SelectContentProps, "children">` |  | Props of the list popup (`SelectContent`): `side`, `align`, `className`... |
| `size` | `"default" \| "lg" \| "sm" \| "xs"` |  |  |
| `visibleYears` | `number` | 20 | The number of years to display. |
| `format` | `Pick` |  | The year and era (`Intl` options). |

Also takes every prop of Base UI `Select.Trigger`: https://base-ui.com/react/components/select

### CalendarError

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  |  |
| `render` | `DOMRenderFunction<any, any>` |  | 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. |
| `className` | `string` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Calendar | `calendar` |  |  |  |
| CalendarMonths | `calendar-months` |  |  |  |
| CalendarHeader | `calendar-header` |  |  |  |
| CalendarHeading | `calendar-heading` |  |  |  |
| CalendarTitle | `calendar-title` |  |  |  |
| CalendarPrevious | `calendar-previous` |  |  |  |
| CalendarNext | `calendar-next` |  |  |  |
| CalendarGrid | `calendar-grid` |  |  |  |
| CalendarGridHeader | `calendar-grid-header` |  | `--calendar-week-number-label` |  |
| CalendarHeaderCell | `calendar-header-cell` |  |  |  |
| CalendarGridBody | `calendar-grid-body` |  |  |  |
| CalendarDayButton | `calendar-day-button` |  |  |  |
| CalendarCell | `calendar-cell` |  |  |  |
| CalendarCellIndicator | `calendar-cell-indicator` |  |  |  |
| CalendarMonthSelect | `calendar-month-select` |  |  |  |
| CalendarYearSelect | `calendar-year-select` |  |  |  |
| CalendarError | `calendar-error` |  |  |  |

## Usage

Put the header and the grid in the calendar. The grid body returns one cell for each date, so you can mark the busy days.

```tsx title="appointment-date.tsx"
"use client";

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

import {
  Calendar,
  CalendarCell,
  CalendarCellIndicator,
  CalendarGrid,
  CalendarGridBody,
  CalendarGridHeader,
  CalendarHeader,
  CalendarHeaderCell,
  CalendarHeading,
  CalendarNext,
  CalendarPrevious,
} from "@/components/ui/calendar";

/** The days of November 2026 with a booked visit. */
const BOOKED = new Set([4, 12, 19]);

export function AppointmentDate() {
  const [day, setDay] = useState(parseDate("2026-11-12"));
  return (
    <Calendar aria-label="Appointment date" value={day} onValueChange={setDay}>
      <CalendarHeader>
        <CalendarPrevious />
        <CalendarHeading />
        <CalendarNext />
      </CalendarHeader>
      <CalendarGrid>
        <CalendarGridHeader>
          {(weekday) => {
            return <CalendarHeaderCell>{weekday}</CalendarHeaderCell>;
          }}
        </CalendarGridHeader>
        <CalendarGridBody>
          {(date) => {
            return BOOKED.has(date.day) ? (
              <CalendarCell date={date} labelSuffix="1 visit">
                {({ formattedDate }) => {
                  return (
                    <>
                      {formattedDate}
                      <CalendarCellIndicator tone="info" />
                    </>
                  );
                }}
              </CalendarCell>
            ) : (
              <CalendarCell date={date} />
            );
          }}
        </CalendarGridBody>
      </CalendarGrid>
    </Calendar>
  );
}
```

## 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/calendar
```

It adds 39 registry items: 36 files, 6507 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

- [Button](https://gelatinui.com/components/button.md)
- [Dot](https://gelatinui.com/components/dot.md)
- [Select](https://gelatinui.com/components/select.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

- [Range Calendar](https://gelatinui.com/components/range-calendar.md): Pick Range Calendar for a start date and an end date on a month grid.
- [Date Picker](https://gelatinui.com/components/date-picker.md): Pick Date Picker for a date in a form field that people type or pick in a popup.
- [Date Field](https://gelatinui.com/components/date-field.md): Pick Date Field for a known date that people type one segment at a time, with no calendar.

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves focus between the previous button, the next button, and the grid. |
| Left Arrow, Right Arrow | Moves focus one day back or on. Right to left swaps them. |
| Up Arrow, Down Arrow | Moves focus one row up or down. |
| Page Up, Page Down | Goes one month back or on. With Shift, goes one year. |
| Home, End | Goes to the start or the end of the month. |
| Enter, Space | Picks the focused date. |

## Accessibility

It is a React Aria calendar. The month is a grid, and each day is a button in a grid cell.

Give it an `aria-label`, or put it next to a label that names it.

Unavailable days keep focus and stay readable, so a keyboard user can find them.

On a touch screen each cell grows to 44 × 44px.
