Skip to content

Separator

<ax-separator> is a thin rule between content — the host element is the rule (empty template). It’s decorative by default (role="none"); set [decorative]="false" to expose it as a semantic separator.

import { AxSeparatorComponent } from '@axisui-ng/misc';
<p>Section one</p>
<ax-separator />
<p>Section two</p>
<!-- vertical, semantic -->
<div class="flex items-center gap-3">
<span>Edit</span>
<ax-separator orientation="vertical" [decorative]="false" />
<span>Delete</span>
</div>
InputTypeDefaultNotes
orientation'horizontal' | 'vertical''horizontal'Rule direction.
decorativebooleantruetruerole="none"; falserole="separator" + aria-orientation.

When decorative, it’s hidden from assistive tech. When semantic (decorative=false), it exposes role="separator" with the matching aria-orientation.

Interactive examples live in Storybook under Misc / Separator. Run pnpm storybook to explore them.