Appearance
Slider
Điều khiển khoảng số.
ts
import { Slider } from "@minap/ui";1
Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
export function Example() {
return (
<>
<SliderSample />
</>
);
}1
2
3
4
5
6
7
2
3
4
5
6
7
Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
value / defaultValue | number[] | — | Mảng multi-thumb Radix |
min / max / step | number | 0 / 100 / 1 | |
disabled | boolean | false | |
aria-label | string | — | Bắt buộc cho a11y khi không có label |
Behavior
- Điều chỉnh bằng bàn phím