Slider
An input for selecting a value from a range.
Import
Usage
Slider Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| value | number[] | - | The controlled value of the slider. |
| defaultValue | number[] | - | The default value (uncontrolled). |
| onValueChange | (value: number[]) => void | - | Callback when the value changes. |
| min | number | 0 | The minimum slider value. |
| max | number | 100 | The maximum slider value. |
| step | number | 1 | The step increment value. |
| disabled | boolean | false | Whether the slider is disabled. |
| className | string | - | Additional CSS classes for styling. |

