Toggle Sidebar B
AppearanceLight & dark mode D

Option Wheel

Curved option picker that spins via scroll, drag, or arrow keys, fading and tilting items away from the selection.

Default

Scroll, drag, click an option or use the arrow keys. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab
Ambient
House
Techno
Jazz
Lo-Fi
Synthwave
Trance
Funk
Disco
Hip-Hop
Chillwave
Drum & Bass

Customize

Text
Active
Side
Font Size3rem
Spacing1.4
Curve1
Tilt6deg
Blur2px
Fade0.25
Smoothing200ms
Inset80px
Sound Volume0.5

API Reference

OptionWheel

PropTypeDefaultDescription
itemsstring[][...]Labels rendered as the wheel options.
defaultSelectednumber3Index of the option selected on mount.
textColorstring"#a6a6a6"Resting color of the option labels.
activeColorstring"#ffffff"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.

OptionWheel events

PropTypeDefaultDescription
change(index: number, item: string) => void-Emitted whenever the wheel settles on a new option.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
ArrowUp + ArrowLeftSelects the previous option.
ArrowDown + ArrowRightSelects the next option.
  • The wheel is a listbox and each label is an option with aria-selected.
  • The wheel captures the mouse wheel while the pointer is over it, so the page does not scroll there.