Skip to main content

Show case

Slider

Here are several examples of how to use the Slider component, categorized by its properties.

1. Range and Value

These properties define the bounds and the current position of the slider.

1
25
0

2. Steps and Snapping

Control the granularity of the selection using fixed intervals or specific points.

3
0.0
1
0.0

3. Colors and Theming

Customize the visual appearance of the tracks and the thumb.

0
0
0

4. Tooltip Customization

Adjust the tooltip that appears while sliding.

0
0

5. Custom Styling

Fine-tune the dimensions and shapes of the slider parts.

To use custom SVG icons for the Slider thumb, you primarily use the thumbImage and thumbTintColor properties.

0
0
0

6. State and Interaction

Handle interaction behavior, animations, and disabled states.

1
1
0

7. Volume Control

Custom styling with volume icon and haptic feedback simulation

🔊
Volume: 75%
🎤
75
Low
Medium
High
Max

8. Temperature Control

Custom thumb image with color-coded track

🌡️
22°C
22
❄️ Cold
😊 Comfort
🔥 Hot

9. Brightness Control

Using larger step values (10) for quick adjustments

🌓
Brightness: 30%
30
0
20
40
60
80
100

10. Snap to Points

Slider that snaps to specific predefined values [0, 10, 25, 50, 75, 90, 100]

Snapped Value: 25
25

RangeSlider

Here are several examples of how to use the RangeSlider component, grouped by its properties. These examples demonstrate how to control the dual thumbs, intervals, and visual styling.

1. Range, Value, and Distance

The RangeSlider uses an array of two numbers for its value. The minimumDistance property ensures a specific gap is maintained between the two thumbs.

0
1
20
50
30
40

2. Steps and Snapping

Control the granularity of the selection. Visual step indicators can be shown or hidden.

0
1
0
1
0.0
1.0

3. Colors and Tooltips

The minimumTrackTintColor in a RangeSlider typically colors the segment between the two thumbs, while maximumTrackTintColor colors the outer segments.

0
1
0
1

4. Custom Thumbs and Styling

You can use icons or custom styles to change the appearance of the dual thumbs.

0
1
0
1

5. State and Interaction

Handle disabled states and transition animations when values change programmatically.

0
1
0
1
0
1

6. Range Selector

Dual-handle slider for selecting a range of values.

Selected Range: 20 - 80
20
80