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.
valuenumber—Controlled value.
defaultValuenumber50Initial value when uncontrolled.
onValueChange(value: number) => void—Fired as the value changes.
classNamestring—Extra classes (e.g. width).