Slider
Forms

Slider.

Adjust numeric values with a native range control.

Real interactive component
Live demo
64
Intensity: 64%

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

9 props
ParameterTypeRequiredDefaultPossible valuesDescription
valuenumberNo50—Current slider value.
minnumberNo0—Minimum allowed value.
maxnumberNo100—Maximum allowed value.
stepnumberNo1—Increment between values.
disabledbooleanNofalsetrue · falseDisable dragging and keyboard changes.
onValueChange(value: number) => voidNo——Receives the numeric slider value.
labelstringNoValue—Accessible range-input label.
showValuebooleanNofalsetrue · falseShow a numeric value beside the custom slider.
classNamestringNo——Additional CSS class on the outer component element.