All components

Angle Slider

Circular dial for picking an angle, with a value arc, draggable thumb and optional markers.

Variants

outline
solid

Sizes

sm
md
lg

Markers and steps

Markers tick the ring and light up once the value passes them; step={45} snaps drags and key presses to the markers. Drag anywhere on the dial, or focus the thumb and use the arrow keys (Shift for 10x steps), Home and End.

Controlled

value and onValueChange drive anything that takes an angle, here a gradient direction.

Disabled

The arc and thumb mute and the dial ignores pointer and keyboard input.

Install

Source

components/ui/base-ui/angle-slider.tsx