<Slider aria-label="Opacity" defaultValue={50}>
<SliderControl />
</Slider>pnpm dlx shadcn@latest add @dotui/sliderUse slider to allow users to select a value from within a given range.
import { Slider, SliderControl } from "@/components/ui/slider";<Slider defaultValue={50}>
<SliderControl />
</Slider>Use the controls below to experiment with different slider props and see the live preview and code update.
The orientation of the Slider.
OrientationA slider allows a user to select one or more values within a range.
| Prop | Type | Default | |
|---|---|---|---|
| — | ||
| | ||
| — | ||
| — | ||
| — | ||
| — | ||
| — | ||
| — | ||
A slider track is a container for one or more slider thumbs.
| Prop | Type | Default | |
|---|---|---|---|
| — | ||
Last updated on 12/21/2025
Bringing singularity to the web.
Built with passion by @mehdibha.
<Dynamic(Slider) defaultValue={50}>
<Dynamic(Label)>Volume</Dynamic(Label)>
<Dynamic(SliderControl) />
</Dynamic(Slider)>