- Components
- Forms
Slider
Single or range slider: a thick pill track whose fill wraps a pill knob.
Installation#
npx shadcn add @ortaui/sliderExamples#
Single#
Range#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | number | number[] | - | One entry per thumb. |
| min / max / step | number | - | Bounds. |
| onValueChange | (value) => void | - | Called while dragging. |
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |