Skip to content
caliper ui docs

Pro

Wheel picker

A scrolling wheel for choosing one value, with keyboard and wheel support.

Pro
pnpm dlx shadcn@latest add @caliper/wheel-picker

Billing anniversary

Halden Analytics is invoiced once a year

Month

Next invoice on 1 March 2027.

Installs components/ui/wheel-picker.tsxDepends on none beyond ReactMotion none in component source

When to use

Use it for

  • Touch-first pickers for months, hours and similar short lists.
  • Combine several wheels for a date or time.

Skip it when

  • 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { WheelPicker } from "@/components/ui/wheel-picker"

The worked example comes with Pro

The 27-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

WheelPicker

component
PropTypeDefault
label *string—
options *readonly WheelOption[]—
valuestring—
defaultValuestring—
onValueChange((value: string) => void)—
namestring—
classNamestring—

Accessibility

It exposes listbox and option semantics, with aria-hidden, aria-label and aria-selected kept in step with state.

KeyBehaviour
↓Moves to the next item or value.
↑Moves to the previous item or value.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Wheels examples