Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsstring[]DEFAULT_ITEMSLabels rendered as the wheel options.
defaultSelectednumber3Index of the option selected on mount.
onChange(index: number, item: string) => voidNoneCalled whenever the wheel settles on a new option.
textColorstring"var(--muted-foreground)"Resting color of the option labels.
activeColorstring"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.
fontSizenumber3Font size of the option labels in rem.
spacingnumber1.4Vertical distance between options as a multiple of the font size.
curvenumber1Depth of the circular curve; 0 flattens the wheel into a straight list.
tiltnumber6Angle in degrees between neighboring options; higher values curl the wheel tighter.
blurnumber2Blur in pixels added per step away from the middle.
fadenumber0.25Opacity lost per step away from the middle.
minOpacitynumber0.05Opacity floor for the furthest options.
smoothingnumber200Easing time constant in milliseconds; higher values feel heavier.
insetnumber80Padding in pixels between the anchored edge and the centered option.
loopbooleanfalseWrap around infinitely instead of stopping at the first and last option.
draggablebooleantrueAllow dragging the wheel with a pointer, in addition to scroll and arrow keys.
soundUrlstring""URL of a short tick sound played when the selection changes; empty disables it.
soundVolumenumber0.5Playback volume of the tick sound.
classNamestring""

More forms components in Pro

View all

Related