Components
Slider
An input where the user selects a value from within a given range.
Installation
Install ReUI
Refer to the Installation Guide for detailed instructions on setting up ReUI dependencies in your project.
Install dependencies
npm install @radix-ui/react-slider
Add component
Copy and paste the following code into your project’s components/ui/slider.tsx
file.
Add hook
Copy and paste the following code into your project’s hooks/use-slider-input.ts
file.
Examples
Default
Loading
Range
Loading
Tooltip
Loading
Input
Loading
Form
Loading
API Reference
This component is built using Radix UI Slider primitives. For detailed information, please visit the full API reference.
Slider
This component is based on the Slider.Root primitive. For full details, visit the official documentation.
SliderThumb
This component is based on the Slider.Thumb primitive. For full details, visit the official documentation.