Back to library

Range slider

Let people adjust a value within a range, such as volume or brightness.

Recommended API

Property or elementTypeExample initial valueDescription
min, max, valueNumbers0, 100, 64Set the range and initial numeric value.
aria-valuetextFormatted text64%Express the number in the user-facing unit.

States

StateTriggerResult
adjustingDrag the thumb or press an arrow key.The thumb and percentage update together.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-spacelength 4pxBase unit for gaps and padding.