---
title: "Wheel"
description: "A picker of rows that turn under one band and stop on a value, as on a phone. Drag, flick, tap, scroll, or use the keys."
url: https://gelatinui.com/components/wheel
markdown_url: https://gelatinui.com/components/wheel.md
access: free
install: "npx shadcn@latest add @gelatin-ui/wheel"
registry_item: https://gelatinui.com/r/wheel.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Wheel

> A picker of rows that turn under one band and stop on a value, as on a phone. Drag, flick, tap, scroll, or use the keys.

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

## When to use it

Best for: A thumb-friendly drum of options, or your own multi-column picker built from its parts.

- Use it on touch screens, where people flick through a short list of choices.
- Use one `WheelColumn` per value, with `WheelSeparator` or `WheelUnit` between columns.
- Turn `loop` off for a list with real ends, such as a list of durations.

## When not to use it

- For a time of day, use a [Time Wheel](https://gelatinui.com/components/time-wheel.md).
- For a date, use a [Date Wheel](https://gelatinui.com/components/date-wheel.md).
- For a number from a range, use a [Number Wheel](https://gelatinui.com/components/number-wheel.md).
- For a long list people search, use a [Select](https://gelatinui.com/components/select.md).

## Notes for agents

- Compose `Wheel`, then `WheelIndicator`, then one `WheelColumn` per value. The indicator spans all columns.
- Each `WheelColumn` keeps its own value: `value`, `defaultValue`, and `onValueChange`.
- Name the root and each column with `aria-label`.
- An item is `{ value, label?, disabled? }`. Disabled rows are skipped.
- `visibleItems` is odd; an even number drops by one. `layout` is `drum` or `flat`.
- `name` on a column sends its value with a form.

## Anatomy

```text
Wheel
├─ WheelIndicator (0..n)
├─ WheelSeparator (0..n)
├─ WheelUnit (0..n)
└─ WheelColumn (0..n)
```

## API reference

### Wheel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "lg" \| "sm"` | "default" |  |
| `variant` | `"framed" \| "plain"` | "framed" |  |
| `layout` | `WheelLayout` | "drum" | `drum` bends the rows on a turning wheel; `flat` only fades them. |
| `visibleItems` | `number` | 5 | How many rows show, an odd number (5 by default). |
| `readOnly` | `boolean` | false |  |
| `invalid` | `boolean` | false |  |

### WheelIndicator

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

### WheelSeparator

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

### WheelUnit

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

### WheelColumn

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `readonly WheelItem<Value>[]` |  |  |
| `value` | `Value` |  |  |
| `defaultValue` | `Value` |  |  |
| `onValueChange` | `function` |  |  |
| `loop` | `boolean` | true | Turn past the last row to the first (on by default). |
| `align` | `"center" \| "end" \| "start"` | "center" | Where the text sits in the row. |
| `name` | `string` |  | The form field name: a hidden input sends the value as text. |
| `disabled` | `boolean` | false |  |
| `readOnly` | `boolean` | false |  |
| `emptyLabel` | `ReactNode` | "No options" | The text of a column with no items. Default "No options". |
| `aria-label` | `string` |  |  |
| `aria-labelledby` | `string` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Wheel | `wheel` | `data-disabled`, `data-dragging`, `data-invalid`, `data-readonly`, `data-variant` | `--foreground`, `--muted`, `--radius-xl`, `--wheel-band-fill`, `--wheel-band-shadow`, `--wheel-height`, `--wheel-row` | `motion-timing` |
| WheelIndicator | `wheel-indicator` | `data-disabled`, `data-dragging`, `data-invalid`, `data-readonly`, `data-variant` | `--foreground`, `--muted`, `--radius-xl`, `--wheel-band-fill`, `--wheel-band-shadow`, `--wheel-height`, `--wheel-row` | `motion-timing` |
| WheelSeparator | `wheel-separator` | `data-disabled`, `data-dragging`, `data-invalid`, `data-readonly`, `data-variant` | `--foreground`, `--muted`, `--radius-xl`, `--wheel-band-fill`, `--wheel-band-shadow`, `--wheel-height`, `--wheel-row` | `motion-timing` |
| WheelUnit | `wheel-unit` | `data-disabled`, `data-dragging`, `data-invalid`, `data-readonly`, `data-variant` | `--foreground`, `--muted`, `--radius-xl`, `--wheel-band-fill`, `--wheel-band-shadow`, `--wheel-height`, `--wheel-row` | `motion-timing` |
| WheelColumn | `wheel-column` | `data-disabled`, `data-dragging`, `data-invalid`, `data-readonly`, `data-variant` | `--foreground`, `--muted`, `--radius-xl`, `--wheel-band-fill`, `--wheel-band-shadow`, `--wheel-height`, `--wheel-row` | `motion-timing` |

## Usage

Put a `WheelIndicator` first, then one `WheelColumn` for each value.

```tsx title="repeat-picker.tsx"
import { Wheel, WheelColumn, WheelIndicator } from "@/components/ui/wheel";

const REPEAT = [
  { value: "never", label: "Never" },
  { value: "daily", label: "Every day" },
  { value: "weekdays", label: "Weekdays" },
];

export function RepeatPicker() {
  return (
    <Wheel aria-label="Repeat">
      <WheelIndicator />
      <WheelColumn aria-label="Repeat" items={REPEAT} defaultValue="weekdays" loop={false} />
    </Wheel>
  );
}
```

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

It adds 17 registry items: 17 files, 2936 lines, and the npm packages `@mantine/hooks`, `motion`, `tailwind-merge`, `tailwind-variants`.

## 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

- [Time Wheel](https://gelatinui.com/components/time-wheel.md)
- [Date Wheel](https://gelatinui.com/components/date-wheel.md)
- [Number Wheel](https://gelatinui.com/components/number-wheel.md)
- [Select](https://gelatinui.com/components/select.md)
- [Radio Group](https://gelatinui.com/components/radio-group.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 |
