Contact Us

Separator

DOC-00111 reference implementor, developer

A styled <hr> (horizontal) or <div role="separator"> (vertical) with visual variants. Use to separate content sections, list items, or inline elements.

File: src/core/components/primitives/Separator.astro

Props

PropTypeDefaultNotes
variant"default" | "dotted" | "dashed" | "wide" | "strong""default"Visual style of the separator
orientation"horizontal" | "vertical""horizontal"Horizontal renders <hr>; vertical renders <div role="separator"> with explicit ARIA
classstringAdditional CSS classes

Usage

---
import Separator from "@core/components/primitives/Separator.astro";
---

{/* Basic horizontal rule */}
<Separator />

{/* Dashed variant */}
<Separator variant="dashed" />

{/* Wide variant — extends beyond content padding */}
<Separator variant="wide" />

{/* Strong variant — thicker border */}
<Separator variant="strong" />

{/* Vertical separator in a flex row */}
<div class="flex items-center gap-md">
  <span>Left</span>
  <Separator orientation="vertical" />
  <span>Right</span>
</div>

Accessibility

  • Horizontal orientation renders a native <hr> element, which is a thematic break — no ARIA attributes needed.
  • Vertical orientation renders <div role="separator" aria-orientation="vertical"> because vertical dividers are not thematic breaks and require explicit ARIA semantics.
  • The component is purely decorative/structural — no keyboard interaction required.

Manual accessibility test entries verified during the accessibility audit. Covers keyboard operability, screen-reader announcements, and ARIA semantics.

Separator

Interaction Expected Behavior WCAG Criterion Test Method
Inspect a vertical Separator in DevToolsRenders <div role="separator" aria-orientation="vertical">. Horizontal Separator renders <hr> with no ARIA attributes.4.1.2 Name, Role, Value Visual Inspection
REQ-00043 implemented The theme shall include foundational UI primitives.
REQ-00272 implemented The theme shall provide layout and content components covering standard content block patterns (separator, button group, columns, media-text, pullquote, reading time, table, gallery, masonry gallery, cover, timeline).

Search

Search across pages and articles. Use arrow keys to navigate results.

Search across pages and articles.

Loading search...

Search is unavailable. Please try again later.

    No results for ""

    Try different keywords or fewer words.