Band Slider
A range slider whose track is split into bands, each an equal share; the active band is filled. Works with keys and right to left.
pixikit.com/docs/components/band-slider
Customize
Default value12
Min1
Max50
Step
Show labels
Accent color
Width520px
Track height10px
Font size14px
Props
14| Name | Type | Default | Description |
|---|---|---|---|
value | number | None | The value, for a controlled slider. |
defaultValue | number | 12 | The starting value when uncontrolled, kept between min and max. |
onValueChange | (value: number) => void | None | Called with each new value. |
min | number | 1 | The lowest value. |
max | number | 50 | The highest value. |
step | number | 1 | The distance between values. |
bands | SliderBand[] | BANDS | The bands, in order. Each gets an equal share of the track and is linear inside it. |
showLabels | boolean | true | A row under the track naming each band, the active one filled. |
accentColor | string | "#7c3aed" | The active band's fill, the thumb and the active label. |
ariaLabel | string | "Value" | What screen readers announce for the slider. |
width | number | 520 | The widest it gets, in pixels; it shrinks to fit a narrow container. |
trackHeight | number | 10 | The track's thickness in pixels; the thumb grows with it. |
fontSize | number | 14 | The size of the band labels, in pixels. |
className | string | None |