Give it a Time and a step. The columns follow the locale clock.
alarm-time.tsx
TimeWheel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | — | The form field name: a hidden input sends the time as HH:mm:ss. |
| 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 | Time | — | |
| default | Time | — | The first time; midnight when left out. |
| on | — | ||
| hour | 1224 | — | 12 or 24; the locale clock when left out. |
| granularity | "minute""second" | "minute" | Show a seconds column. |
| minute | number | 1 | The minutes between two rows (1 by default; 5 or 15 for a booking). |
| hour | number | 1 | The hours between two rows. |
| min | Time | — | Rows before this time are disabled. |
| max | Time | — | Rows after this time are disabled. |
| labels | Partial<Record<TimeColumnType, 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 Time Wheel
- Components
- Wheel







