Wheel picker
A scrolling wheel for choosing one value, with keyboard and wheel support.
Month
Next invoice on 1 March 2027.
When to use
- Touch-first pickers for months, hours and similar short lists.
- Combine several wheels for a date or time.
When not to use
- The list is long and searchable; use a combobox.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/wheel-picker
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
WheelPicker
7 props
PropTypeDefault
label *string—
options *readonly WheelOption[]—
valuestring—
defaultValuestring—
onValueChange((value: string) => void)—
namestring—
classNamestring—
Keyboard
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
Accessibility
It exposes listbox and option semantics, with aria-hidden, aria-label and aria-selected kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/wheel-picker.mdThe index of every part is at /llms.txt.