Slider
An input where the user selects a value from within a given range.
Loading...
Loading code...
Installation
Usage
import { Slider, SliderValue } from "@/components/ui/slider"<Slider />Examples
For accessible labelling and validation, prefer using the Field component to wrap checkboxes. See the related example: Slider field.
With Label and Value
Loading...
Loading code...
Range Slider
Loading...
Loading code...
Vertical
Loading...
Loading code...
Form Integration
Loading...
Loading code...
Comparing with Radix / shadcn
If you're already familiar with Radix UI and shadcn/ui, this guide highlights the small differences and similarities so you can get started with ui/topia quickly.
Quick Checklist
- If you used
asChildon parts, switch to therenderprop