FORMS
Slider
Memphis-bordered slider with one or more thumbs. Built on Radix Slider — full keyboard support, drag handling, and ARIA semantics come from the primitive.
Import
Single thumb
Range slider
Pass two values to render a range with a primary fill between them.
Vertical
Wrap the Slider in a container with an explicit height — the vertical orientation makes the Slider fill its parent's height.
Props
Slider props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number[] | — | Controlled value(s). Pair with onValueChange. |
| defaultValue | number[] | — | Uncontrolled initial value(s). |
| onValueChange | (values: number[]) => void | — | Fires while dragging or with keyboard arrows. |
| min | number | 0 | Minimum value. |
| max | number | 100 | Maximum value. |
| step | number | 1 | Increment for arrow-key changes. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Drag axis. Vertical sliders need an explicit height on the wrapper. |
| disabled | boolean | — | Disables interaction. |
| inverted | boolean | false | Reverse the visual direction (right-to-left or top-to-bottom). |
Accessibility
- Each thumb is a
role="slider"witharia-valuemin,aria-valuemax, andaria-valuenow. - Provide context with
aria-labeloraria-labelledby— what does the value represent? - Keyboard: arrows step by
step, Home/End jump to min/max, PageUp/PageDown move by 10× step.