Back to library

Loader

Show that work is in progress when the completion time is unknown.

Loading activity

Recommended API

Property or elementTypeExample initial valueDescription
role="status"ARIA roleLoading activityExpose the loading message without moving focus.

States

StateTriggerResult
indeterminateRender while work is pending.The spinner and text indicate ongoing work with no percentage.

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-surfacecolor #ffffffSurface for controls and cards.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-radiuslength 10pxBase corner radius.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-durationtime 175msDuration of visual state transitions.
--q-spacelength 4pxBase unit for gaps and padding.