---
title: "Time Wheel"
description: "Pick a time of day by turning hour, minute, and AM/PM wheels, in the order of the locale. Seconds, minute steps, and a time range are optional."
url: https://gelatinui.com/components/time-wheel
markdown_url: https://gelatinui.com/components/time-wheel.md
access: free
install: "npx shadcn@latest add @gelatin-ui/time-wheel"
registry_item: https://gelatinui.com/r/time-wheel.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Time Wheel

> Pick a time of day by turning hour, minute, and AM/PM wheels, in the order of the locale. Seconds, minute steps, and a time range are optional.

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

## When to use it

Best for: Pick a time of day with a thumb, on hour, minute, and AM/PM columns that turn.

- Use it in a phone sheet or a page where the time is always shown.
- Use `minuteStep` for steps of 5 or 15 minutes, and `minValue` and `maxValue` for open hours.
- Use `granularity="second"` for a seconds column.

## When not to use it

- For a field that people can also type in, use a [Time Picker](https://gelatinui.com/components/time-picker.md).
- For a list of free slots, use [Time Slots](https://gelatinui.com/components/time-slots.md).

## Notes for agents

- The value is a `Time` from `@internationalized/date`.
- With no `hourCycle`, the clock follows the locale of `DisplayLocaleProvider`. A 12-hour clock adds an AM/PM column.
- Rows outside `minValue` and `maxValue` are disabled and skipped.
- `name` sends the time as `HH:mm:ss` with a form.
- Inside a Time Picker popup, use `TimePickerWheel`: it binds the wheel to the field.

## Anatomy

```text
TimeWheel
```

## API reference

### TimeWheel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` |  | The form field name: a hidden input sends the time as `HH:mm:ss`. |
| `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` | `Time` |  |  |
| `defaultValue` | `Time` |  | The first time; midnight when left out. |
| `onValueChange` | `function` |  |  |
| `hourCycle` | `HourCycle` |  | `12` or `24`; the locale clock when left out. |
| `granularity` | `"minute" \| "second"` | "minute" | Show a seconds column. |
| `minuteStep` | `number` | 1 | The minutes between two rows (1 by default; 5 or 15 for a booking). |
| `hourStep` | `number` | 1 | The hours between two rows. |
| `minValue` | `Time` |  | Rows before this time are disabled. |
| `maxValue` | `Time` |  | Rows after this time are disabled. |
| `labels` | `Partial<Record<TimeColumnType, string>>` |  | The spoken names of the columns. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TimeWheel | `time-wheel` |  |  |  |

## Usage

Give it a `Time` and a step. The columns follow the locale clock.

```tsx title="alarm-time.tsx"
import { Time } from "@internationalized/date";

import { TimeWheel } from "@/components/ui/time-wheel";

export function AlarmTime() {
  return <TimeWheel aria-label="Alarm" defaultValue={new Time(6, 45)} minuteStep={5} />;
}
```

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

It adds 24 registry items: 24 files, 3744 lines, and the npm packages `@internationalized/date`, `@mantine/hooks`, `clsx`, `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)
- [Time Picker](https://gelatinui.com/components/time-picker.md)
- [Time Field](https://gelatinui.com/components/time-field.md)
- [Time Slots](https://gelatinui.com/components/time-slots.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 |
