43 lines
818 B
Plaintext
43 lines
818 B
Plaintext
---
|
|
title: Slider
|
|
description: A customizable slider component with two variants.
|
|
lastUpdated: 09 Sep, 2025
|
|
links:
|
|
api_reference: https://www.radix-ui.com/docs/primitives/components/slider#api-reference
|
|
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Slider.tsx
|
|
---
|
|
|
|
<ComponentShowcase name="slider-style-default" />
|
|
<br />
|
|
<br />
|
|
|
|
## Installation
|
|
|
|
<ComponentInstall>
|
|
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/slider" />
|
|
<ComponentInstall.Manual>
|
|
|
|
#### 1. Install dependencies:
|
|
|
|
```sh
|
|
npm install @radix-ui/react-slider
|
|
```
|
|
|
|
<br />
|
|
|
|
#### 2. Copy the code 👇 into your project:
|
|
|
|
<ComponentSource name="slider" />
|
|
|
|
</ComponentInstall.Manual>
|
|
</ComponentInstall>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
## Examples
|
|
|
|
### Default
|
|
|
|
<ComponentShowcase name="slider-style-default" />
|