--- title: Slider description: An input where the user selects a value from within a given range. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/slider api: https://www.radix-ui.com/docs/primitives/components/slider#api-reference source: radix: true shadcn: true --- ## Installation CLI Manual ```bash npx shadcn-ui@latest add slider ``` Install the following dependencies: ```bash npm install @radix-ui/react-slider ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Slider } from '@/components/ui/slider' ``` ```tsx ``` ## Examples ### Min and Max Range