- Android
- iOS
- Web
Slider
A Slider component is a UI element that allows users to select a value from a range by sliding a handle along a track. It provides an interactive way to adjust settings, such as volume, brightness, or other continuous values, with smooth transitions. Sliders can be single or multi-valued, enabling users to make precise selections visually, enhancing the overall user experience.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| label | string | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| id | string | Optional | |
| value | number | Optional | |
| defaultValue | number | Optional | |
| min | string | number | Optional | |
| max | string | number | Optional | |
| step | number | Optional | |
| disabled | boolean | Optional | |
| orientation | "horizontal" | "vertical" | Optional | |
| onChange | ((value: number) => void) | Optional | |
| showOutput | boolean | Optional | |
| accessibilityLabel | string | Optional |