Slider

Single-value and range inputs. Use Slider for a single thumb and Range for a two-thumb range selector.


Standard Slider

Bind value to track the selected number.

Selected value: 50

Range Slider

Use Range and bind a two-element array.

Value: [25, 75]

Range with Distance Constraint

The distance prop enforces a minimum and/or maximum gap between the two thumbs.

Value: [40, 60]

Sizes

Three sizes: normal (default), compact, and small.


Step and Min / Max

Customize the step increment and the value range.


Stops

Set drawStops to render a dot on the track at each step position.

Value: 5

Disabled

The slider can be disabled.


Show Value

Set showValue to display the current value in a bubble above the knob while dragging. Pass a formatter function to add a unit or custom label.

Slider — boolean

Slider — formatter

Range — formatter