---
title: "Date Wheel"
description: "Pick a date by turning month, day, and year wheels. The columns follow the order and month names of the locale, and a range limits the dates."
url: https://gelatinui.com/components/date-wheel
markdown_url: https://gelatinui.com/components/date-wheel.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/date-wheel"
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Date Wheel

> Pick a date by turning month, day, and year wheels. The columns follow the order and month names of the locale, and a range limits the dates.

Page: https://gelatinui.com/components/date-wheel

## When to use it

Best for: Pick a date far from today, such as a birthday, on month, day, and year columns.

- Use it for a date of birth or another date many years back.
- Use `minValue` and `maxValue` to limit the years and disable the dates outside them.

## When not to use it

- For a date near today, use a [Calendar](https://gelatinui.com/components/calendar.md).
- For a field that people can type in, use a [Date Field](https://gelatinui.com/components/date-field.md).
- For a date in a popup, use a [Date Picker](https://gelatinui.com/components/date-picker.md).

## Notes for agents

- The value is a `CalendarDate` from `@internationalized/date`. With no value, it starts at 2000-01-01.
- The columns follow the locale order, and the month names come from the locale.
- The day column follows the month: 31 January turned to February lands on the last day.
- The years run from 1900 to 2100, or from the years of `minValue` and `maxValue`.
- `name` sends the date as `YYYY-MM-DD` with a form.

## Anatomy

```text
DateWheel
```

## API reference

### DateWheel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` |  | The form field name: a hidden input sends the date as `YYYY-MM-DD`. |
| `layout` | `WheelLayout` |  | `drum` bends the rows on a turning wheel; `flat` only fades them. |
| `visibleItems` | `number` |  | How many rows show, an odd number (5 by default). |
| `readOnly` | `boolean` |  |  |
| `invalid` | `boolean` |  |  |
| `size` | `"default" \| "lg" \| "sm"` |  |  |
| `variant` | `"framed" \| "plain"` |  |  |
| `value` | `CalendarDate` |  |  |
| `defaultValue` | `CalendarDate` |  | The first date; 2000-01-01 when left out (a server and a browser render the same date). |
| `onValueChange` | `function` |  |  |
| `minValue` | `CalendarDate` |  | The first date that can be picked; the year column starts at its year (1900 when left out). |
| `maxValue` | `CalendarDate` |  | The last date that can be picked; the year column ends at its year (2100 when left out). |
| `labels` | `Partial<Record<DatePart, string>>` |  | The spoken names of the columns. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| DateWheel | `date-wheel` |  |  |  |

## Usage

Give it a `CalendarDate`. The columns follow the locale order.

```tsx title="birthday-field.tsx"
import { CalendarDate } from "@internationalized/date";

import { DateWheel } from "@/components/ui/pro/date-wheel";

export function BirthdayField() {
  return (
    <DateWheel
      aria-label="Birthday"
      name="birthday"
      defaultValue={new CalendarDate(1994, 6, 18)}
      maxValue={new CalendarDate(2010, 11, 9)}
    />
  );
}
```

## 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-pro/date-wheel
```

It adds 21 registry items: 21 files, 3478 lines, and the npm packages `@internationalized/date`, `@mantine/hooks`, `motion`, `react-aria-components`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Wheel](https://gelatinui.com/components/wheel.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

- [Wheel](https://gelatinui.com/components/wheel.md)
- [Date Field](https://gelatinui.com/components/date-field.md)
- [Calendar](https://gelatinui.com/components/calendar.md)
- [Date Picker](https://gelatinui.com/components/date-picker.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves to the next column. Each column is one tab stop. |
| Up Arrow, Down Arrow | Turns the column one row and sets the value. |
| Page Up, Page Down | Turns the column five rows. |
| Home, End | Goes to the first or the last row that is not disabled. |
| Left Arrow, Right Arrow | Moves to the column before or after. |

## Accessibility

Each column is a range input: one tab stop, with the row text as its value text.

The mouse wheel turns a column only while it has focus, so the page scroll never stops on it.

On a touch screen every row is 44px high.

## Motion

| Part | Motion |
| --- | --- |
| Flick | glide · a physics spring that keeps the flick speed and settles on the nearest row |
| Keys and taps | glide · spring to the new row |
