Slider
atomsA native <input type="range"> restyled from tokens with a filled track, a value readout, ticks and clickable labelled marks.
Playback settings
showValue adds a bound <output>; format shapes it; marks are clickable labelled stops.
Seconds of overlap between tracks.
72% · 1× · crossfade 4sTicks, marks and widths
ticks={true} dots every step, ticks={[…]} at chosen values; marks adds a clickable label row; width pins the control.
States
disabled, invalid, values pinned at min and max, a negative range, and a fine step that stays quiet while dragging.
Negative ranges work like any other.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value bindable | number | 0 | |
min | number | 0 | |
max | number | 100 | |
step | number | 1 | |
label | string | — | |
showValue | boolean | false | |
format | (v: number) => string | — | |
id | string | — | |
aria-describedby | string | null | — | |
aria-invalid | HTMLInputAttributes['aria-invalid'] | — | |
invalid | boolean | false | Error state: aria-invalid. |
ticks | boolean | number[] | false | Visible dots at each step (segmented slider). `true` = one per `step`; a number array places dots at those values. |
marks | { value: number; label: string }[] | [] | Clickable labelled tick row under the track. |
width | string | — | Fixed width (`flex: none`). |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
el bindable | HTMLInputElement | null | null |