Selection
Slider
A slider sets a number in a known range by dragging, tapping or the arrow keys, such as the length of a session, and always shows the value in text.
In kanso-ui as Slider
Live in kanso-ui
Slider from kanso-ui as it draws today, in Kanso’s tokens. Press, hover and tab through it: the shapes, the springs and the sizes are the library’s own.
The design
The Kanso design system's own drawing of it, in HTML and CSS with kanso-ui's tokens: the look kanso-ui's component moves to with its family's release.
When to use
- Use it for a value in a known range with even steps, where the rough size matters more than the exact digit: a session of 5 to 60 min, in steps of 5.
- Don't use it for exact numbers or money: use TextField with the mono amount variant. For a few named levels, use SegmentedControl or RadioGroup; to show progress, Meter.