Pick Wheel
A picker whose options sit on a wheel curving around one edge: the middle one is sharp and bright, the rest tilt, blur and fade away. Scroll, drag, click or use the arrow keys.
pixikit.com/docs/components/pick-wheel
Customize
Text color
Active color
Side
Font size3.0rem
Spacing1.40
Curve1.00
Tilt6.0deg
Blur2.00px
Fade0.25
Smoothing200ms
Inset80px
Loop
Draggable
Sound volume0.50
Props
20| Name | Type | Default | Description |
|---|---|---|---|
items | string[] | DEFAULT_ITEMS | Labels rendered as the wheel options. |
defaultSelected | number | 3 | Index of the option selected on mount. |
onChange | (index: number, item: string) => void | None | Called whenever the wheel settles on a new option. |
textColor | string | "var(--muted-foreground)" | Resting color of the option labels. |
activeColor | string | "var(--foreground)" | Color an option blends toward as it reaches the middle of the wheel. |
side | "left" | "right" | "left" | Edge of the container the wheel curves around. |
fontSize | number | 3 | Font size of the option labels in rem. |
spacing | number | 1.4 | Vertical distance between options as a multiple of the font size. |
curve | number | 1 | Depth of the circular curve; 0 flattens the wheel into a straight list. |
tilt | number | 6 | Angle in degrees between neighboring options; higher values curl the wheel tighter. |
blur | number | 2 | Blur in pixels added per step away from the middle. |
fade | number | 0.25 | Opacity lost per step away from the middle. |
minOpacity | number | 0.05 | Opacity floor for the furthest options. |
smoothing | number | 200 | Easing time constant in milliseconds; higher values feel heavier. |
inset | number | 80 | Padding in pixels between the anchored edge and the centered option. |
loop | boolean | false | Wrap around infinitely instead of stopping at the first and last option. |
draggable | boolean | true | Allow dragging the wheel with a pointer, in addition to scroll and arrow keys. |
soundUrl | string | "" | URL of a short tick sound played when the selection changes; empty disables it. |
soundVolume | number | 0.5 | Playback volume of the tick sound. |
className | string | "" |