Slider

Range input for selecting a value within bounds

Category: inputs · WCAG 2.2-AA · form, range, input

Props

PropTypeDefaultDescription
labelstringText label for the control.
minnumber0Minimum allowed value.
maxnumber100Maximum allowed value.
stepnumber1Increment between allowed values.
valuenumberThe controlled value.
defaultValuenumberThe initial value when uncontrolled.
disabledbooleanfalseWhen true, disables the control and removes it from the tab order.

Design tokens

When to use

When not to use

How to build an accessible Slider in React →

Examples

Basic

<Slider label="Volume" defaultValue={50} />

Stepped

<Slider label="Rating" min={0} max={5} step={1} />

Related components

← Back to docs