Back to Components
Feedback
Slider
Range slider with track, range, and thumb components.
Dependencies
- @radix-ui/react-slider
- clsx
- tailwind-merge
Files
- components/ui/slider.tsx
Installation
Using shadcn CLI
npx shadcn add slider --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install @radix-ui/react-slider clsx tailwind-merge