Basic Usage
With Step Increment
Different Ranges
Displaying the Value
Give the slider aname to store its value in state, then reference it with {{ }} interpolation in other components. Add a format specifier to control how the value displays:
The slider, label, and progress bar all stay in sync — drag the slider and the displayed value and progress bar update instantly. This pattern works with any component that supports interpolation.
Disabled State
API Reference
Slider Parameters
Minimum value of the range.
Maximum value of the range.
Initial value.
Step increment for the slider. If not provided, slider moves continuously.
Form field name for submission.
Whether the slider is non-interactive.
Additional Tailwind CSS classes appended to the component’s built-in styles.
Protocol Reference
Slider