A Slider allows the user to select values in a linear range of values.

installyarn add @clayui/slider
versionNPM Version
useimport Slider from '@clayui/slider';

Input

Snippet

Custom Slider

Add clay-range-progress-none to clay-range for a basic range input that works without JavaScript.

Snippet

This CSS Component requires JavaScript to manipulate the progress indicator. We hide the native input because there is no way to add a progress indicator to the native input in Firefox or Safari. A JavaScript snippet is included with this example if the React Component is not an option.

The attribute data-toggle="clay-css-range" is only required if using the JavaScript shown in this demo.

Snippet

Disabled

Snippet

50

Snippet

Tooltip

Snippet

Snippet

References

These are visual indicators placed at the beginning and end of Clay Range; use the attributes data-label-min="{value}" and data-label-max="{value}" on clay-range-input to display them.

30

Snippet

Label

Labels are visual indicators appended to the beginning or end of Clay Range. These are used to display the current position of Clay Range.

50

Snippet

15

Snippet

Title

Titles are visual indicators placed at the top of Clay Range. These are used to display the current position of Clay Range.

15

Snippet

15
15

Snippet

Edit this page on GitHub

Contributors

Matuzalém Teles

Last edited May 9, 2025 at 6:15:38 AM