Skip to content

Separator ​

A simple visual divider for separating sections of content. Supports horizontal and vertical orientation, an optional centered label, and semantic vs. decorative modes.

Horizontal (Default) ​

Full width

Vertical ​

Set orientation="vertical" for inline use. The separator stretches to match the line height of surrounding flex / inline content.

Full width

With Label ​

Add a centered label to split the line into two segments.

Full width

Colors ​

Full width

Colors with Label ​

Full width

Semantic Separator ​

By default the separator is decorative (aria-hidden="true"). Set decorative="false" for sections where the separator carries structural meaning. When using a semantic separator, pair it with aria-label to describe the separation.

html
<ore-separator decorative="false" aria-label="End of navigation"></ore-separator>

API Reference ​

Attributes ​

AttributeTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Direction of the divider line
decorativebooleantrueWhen true, sets aria-hidden. Set to false for semantic separators
labelstringN/AOptional text centered on the separator line
color'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'N/ATheme color for the line

CSS Custom Properties ​

PropertyDescription
--separator-colorLine color
--separator-sizeLine thickness (defaults to 1px)
--separator-spacingVertical margin above and below the line

Accessibility ​

By default, ore-separator is decorative and rendered with aria-hidden="true", so screen readers skip it entirely. When the separator carries structural meaning: for example, dividing distinct regions of a page: set decorative="false" and provide an aria-label to describe the separation. This switches the element to role="separator", making it visible to assistive technology.