Back to library

Separator

Separate adjacent sections, rows, or inline items with rules.

Project resources

Explore the latest updates.


Recommended API

Property or elementTypeExample initial valueDescription
<hr>ElementHorizontalMark a thematic break between sections.
aria-orientationARIA tokenvertical on inline separatorsDescribe the direction of the inline rule.

States

StateTriggerResult
staticRender the separator between related items.The rule distinguishes the groups at a glance.

Svelte implementation guidance

Separate content horizontally or vertically; decorative separators should be hidden from assistive technology.

Use semantic HTML and preserve keyboard access. Adapt the example to the project conventions.

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-bordercolor #dce0d8Color for outlines and dividers.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-spacelength 4pxBase unit for gaps and padding.