ONONC

Slider

Range input with pointer drag and keyboard control.

a11yform

Styled with ONONC's design tokens shadcn add installs them for you.

Customize

Default value60
Min0
Max100
Step1

Props

PropTypeDefaultDescription
minnumber0Lower bound.
maxnumber100Upper bound.
stepnumber1Increment for drag + keyboard.
valuenumberControlled value.
defaultValuenumber50Initial value when uncontrolled.
onValueChange(value: number) => voidFired as the value changes.
classNamestringExtra classes (e.g. width).