Components
Separator
A visual or semantic divider between content sections.
A horizontal or vertical dividing line. When decorative is false (default), it renders as role="separator" with an appropriate aria-orientation attribute.
Use it when a break is part of the page structure. Use decorative when the line is visual only and should be ignored by assistive tech.
Anatomy
ui.root: Single separator element rendered byas. Directclassalso applies here.
Separator has no internal parts. The only styling target is the root element.
Usage
Horizontal separator
Content below the separator.
HomeAboutContact
Examples
Vertical separator
Use vertical orientation between inline or flex items.
<template>
<div class="flex items-center gap-4">
<span>Home</span>
<Separator orientation="vertical" class="h-4" />
<span>About</span>
</div>
</template>
Semantic section divider
Use the default semantic separator when the line marks a meaningful content break.
<template>
<section>
<h2>Account</h2>
<p>Profile and authentication settings.</p>
</section>
<Separator class="my-8 border-t border-neutral-200" />
<section>
<h2>Billing</h2>
<p>Plan, invoices, and payment method.</p>
</section>
</template>
Decorative
Use decorative when the separator is purely visual and carries no semantic meaning.
<template>
<Separator :decorative="true" class="my-divider" />
</template>
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Direction of the separator line. |
decorative | boolean | false | When true, renders as role="none" (purely visual). |
as | string | "div" | Root element tag. |
ui | SeparatorUi | — | Classes for the root element. |
UI Options
| Key | Description |
|---|---|
root | The separator element. |
Styling Hooks
| UI key | CSS class | Data attrs |
|---|---|---|
root | akaza-separator | data-akaza-orientation |