label | string | - | Text beside the value, above the track. |
| Text beside the value, above the track. |
description | string | - | A line under the control, for context on what the value means. |
| A line under the control, for context on what the value means. |
defaultValue | number | number[] | - | |
|
value | number | number[] | - | Controlled value, same shape rule as defaultValue. |
Controlled value, same shape rule as defaultValue. |
onValueChange | (value: number | number[]) => void | - | |
|
min | number | 0 | Lower bound. |
| Lower bound. |
max | number | 100 | Upper bound. |
| Upper bound. |
step | number | 1 | Amount each keyboard press or drag increment changes the value by. |
| Amount each keyboard press or drag increment changes the value by. |
formatValue | (value: number | number[]) => ReactNode | - | |
|
unit | string | - | |
|
marks | string[] | - | Labels spread evenly under the track, first at the start, last at the end. |
| Labels spread evenly under the track, first at the start, last at the end. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks interaction and dims the control. |
| Blocks interaction and dims the control. |
required | boolean | false | Appends a red asterisk to the label. |
| Appends a red asterisk to the label. |
className | string | - | |
|
focus | boolean | string | true | |
|