The Slider component allows users to select a value or range of values by dragging a thumb along a track.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Components
Slider (Root)
Controlled value(s).
Default value(s).
Callback when value changes.
Minimum value.
Maximum value.
Step increment.
Orientation. Options:
horizontal, verticalDisable the slider.
SliderValue
Displays the current value(s).SliderControl
Container for the track and thumbs.SliderTrack
The track background.SliderIndicator
The filled portion of the track.SliderThumb
Draggable thumb control. Add multiple for range sliders.Examples
Basic Slider
Range Slider
With Custom Range
Vertical Slider
Accessibility
- Built on @base-ui/react for ARIA support
- Keyboard navigation (Arrow keys, Page Up/Down, Home, End)
- Focus visible ring on thumb
- Proper ARIA labels and values
- Screen reader announcements for value changes