Give it a CalendarDate. The columns follow the locale order.
birthday-field.tsx
DateWheel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | — | The form field name: a hidden input sends the date as YYYY-MM-DD. |
| layout | "drum""flat" | — | drum bends the rows on a turning wheel; flat only fades them. |
| visible | number | — | How many rows show, an odd number (5 by default). |
| read | boolean | — | |
| invalid | boolean | — | |
| size | "default""lg""sm" | — | |
| variant | "framed""plain" | — | |
| value | CalendarDate | — | |
| default | CalendarDate | — | The first date; 2000-01-01 when left out (a server and a browser render the same date). |
| on | — | ||
| min | CalendarDate | — | The first date that can be picked; the year column starts at its year (1900 when left out). |
| max | 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. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves to the next column. Each column is one tab stop. |
|---|---|
| Up ArroworDown Arrow | Turns the column one row and sets the value. |
| Page UporPage Down | Turns the column five rows. |
| HomeorEnd | Goes to the first or the last row that is not disabled. |
| Left ArroworRight Arrow | Moves to the column before or after. |
Built with
Installs with Date Wheel
- Components
- Wheel













