---
title: Slider
description: An input where the user selects a value from within a given range.
component: true
radix:
link: https://www.radix-ui.com/docs/primitives/components/slider
api: https://www.radix-ui.com/docs/primitives/components/slider#api-reference
---
## Installation
```bash
npx shadcn-ui add slider
```
Manual Installation
1. Install the `@radix-ui/react-slider` component from radix-ui:
```bash
npm install @radix-ui/react-slider
```
2. Copy and paste the following code into your project.
This is the `` primitive. You can place it in a file at `components/ui/slider.tsx`.
## Usage
```tsx
import { Slider } from "@/components/ui/slider"
```
```tsx
```