Back to library

Filter chips

Let people narrow results by choosing filters such as topics or product attributes.

Recommended API

Property or elementTypeExample initial valueDescription
aria-pressedARIA BooleanDesign selectedRepresent the selection state of each filter.
Filter labelsTextDesign, Engineering, Motion, WritingName the options used to narrow results.

States

StateTriggerResult
selectedActivate an available chip.The chip changes to its selected appearance. Other filters are independent.

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-border-widthlength 1pxThickness of the outline.
--q-radiuslength 10pxBase corner radius.
--q-spacelength 4pxBase unit for gaps and padding.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-control-pylength calc(var(--q-space) * 2.5)Vertical padding for controls.
--q-durationtime 175msDuration of visual state transitions.