Separator

A semantic or decorative boundary between content sections. Supports horizontal and vertical directions, with an optional visible label.

Usage

<script type="module" src="/assets/components/separator/qds-separator.js"></script>
<qds-separator label="Financing assumptions"></qds-separator>
<qds-separator orientation="vertical" decorative></qds-separator>

API

Property / attribute Type Default Meaning
orientation horizontal or vertical horizontal Line direction and ARIA orientation; invalid values normalize to horizontal.
label string empty Visible label and accessible name; text is never interpreted as HTML.
decorative boolean false Hide from assistive technology and remove separator semantics.

The host supplies role="separator" and aria-orientation in semantic mode. Decorative mode supplies aria-hidden="true". It has no focus stop, custom events or child slots. Changes to all public properties work after connection, disconnection and reconnection.

Styling and accessibility

Parts: line, label. Uses existing QDS border/text tokens for light and dark modes and system colors in forced-color mode. Place vertical separators in a flex/grid row with sufficient height. Use headings for document structure; a labelled separator does not replace a section heading. No motion is introduced.

Angular business example

Northwind’s company-detail screen separates the investment summary from operating-asset review with a labelled semantic separator. See /#/portfolio/companies/co-redwood through generated QdsSeparatorComponent bindings. Labels should describe the business boundary rather than the component name.