Back to library

Top

Give a screen a title and show optional context above or below it.

Monthly savings

Choose a date

We’ll set aside money on this day each month.

Recommended API

Property or elementTypeExample initial valueDescription
TitleHeading textSample page titleState the main task or information.
Upper and lower descriptionsOptional textSample contextAdd only context people need to understand the title.

States

StateTriggerResult
staticRender the header.The title and any provided descriptions keep their reading order.

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-spacelength 4pxBase unit for gaps and padding.