Skip to content
View as Markdown

Data display

Separator

A native <hr> for boundaries that mean something: announced as a separator, not just drawn as a line.

Import

import { Separator } from "@loamui/core";

Usage

Every example has a CSStab. That’s the real, complete stylesheet for the component: plain, static CSS, with nothing running in the browser.

Basic usage

A real <hr>: the platform's separator role, no ARIA required.

Account settings


Danger zone

Vertical

Divides items in a row; adds aria-orientation="vertical" and stretches to the row's height.

Cut
Copy
Paste

Guidance

When to use it

  • Between groups of related content where the division itself carries meaning: it is announced as a separator by assistive technology.
  • Between inline items in a toolbar-like row (vertical form).

When not to

  • For purely visual division between layout areas. A border on the region is simpler and adds nothing to the accessibility tree.
  • Inside a Menu. Menu.Separator exists for that and is already styled for menu padding.

Accessibility

  • Renders a native <hr>, which has the separator role built in.
  • The vertical form adds aria-orientation="vertical" so the division is announced correctly in horizontal flows.

How it works

Meaningful division only

An <hr> is announced to assistive technology as a separator, a real boundary between one group of content and the next. A line that is only visual rhythm belongs in CSS as a border, where it adds nothing to what a screen reader must walk through.

Prefer space before rules

Whitespace and headings usually divide content more quietly than a drawn line, and grouped controls have better tools (Fieldset, Card). Reach for Separator when groups genuinely need a marked boundary the eye and the screen reader should both register: a toolbar's action clusters, a footer's legal block.

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the rule.
...othersHTMLAttributes<HTMLHRElement>All native <hr> props are forwarded.