Slider
Pick a value or a range by dragging a thumb.
components/ui/slider.tsx
Preview
Code
Installation
npx betterone-ds add sliderProps
| Prop | Type | Default |
|---|---|---|
| defaultValue | number | number[] | — |
| minValue / maxValue | number | 0 / 100 |
| step | number | 1 |
Accessibility
- Arrow keys change the value. Always set an aria-label.

