Range slider
Let people adjust a value within a range, such as volume or brightness.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
min, max, value | Numbers | 0, 100, 64 | Set the range and initial numeric value. |
aria-valuetext | Formatted text | 64% | Express the number in the user-facing unit. |
States
| State | Trigger | Result |
|---|---|---|
adjusting | Drag the thumb or press an arrow key. | The thumb and percentage update together. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-space | length | 4px | Base unit for gaps and padding. |