IN-06Inputs
Wheel Picker
iOS-style 3D drum picker with flick momentum, built with React and Motion.
PRONatural Date Input and more like it are in Kokonut UI Pro
Installation
Wheel Picker is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/wheel-picker.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/wheel-pickerOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/wheel-picker.tsx.
npm install motionUsage
import WheelPicker from "@/components/kokonutui/wheel-picker";
export default function Example() {
return <WheelPicker />;
}Props
columnsWheelColumn[]Default built-invalueRecord<string, string>Controlled selection, keyed by column id.
defaultValueRecord<string, string>Default built-inInitial selection when uncontrolled.
onValueChange(value: Record<string, string>) => voidCalled once a wheel comes to rest on a new option.
labelstringDefault "Time"Accessible name for the whole picker.
classNamestringExtra classes for the root element.
WheelColumn
idrequiredstringlabelrequiredstringAccessible name of the column, e.g. "Hours".
optionsrequiredWheelOption[]loopbooleanWrap around from the last option to the first.
classNamestringTailwind width class for the column.
WheelOption
valuerequiredstringlabelrequiredstringDependencies
| Needs | Version | Comes from |
|---|---|---|
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

