Draft. Ported from the shadcn-vue Slider and restyled with Beehexa tokens. Not yet approved; the API may still change.
A track with a thumb people drag to pick a value or a range.
When to use
- An approximate value where the exact number matters less than the position: volume, a threshold.
- A range, such as a price filter.
When not to use
- An exact number. Use a Number field, or pair the slider with one.
Tokens
| Part | Tokens |
|---|---|
| Track | size.track.default (4 px), radius.full, color.background.neutral |
| Range | color.background.neutral.bold |
| Thumb | slider.size.thumb (16 px), round, 1 px color.border.bold on color.surface |
| Focus | the Button focus ring (border.width.focused, color.border.focus, state.focus.offset) |
| Target | at least size.target.minimum, size.target.touch on touch screens |