Divider
Semantic horizontal or vertical separator with labels and consistent inset spacing.
- Selector
- ui-divider
- Package
- @ngnova/ui/divider
Import
import { UiDividerComponent } from '@ngnova/ui/divider';Usage & variants
Live examples use the public ui-divider API, paired with the exact snippet a product team would paste into an Angular app.
Settings section divider
Semantic horizontal or vertical separator with labels and consistent inset spacing.
Account settings
Notification preferences
Developer settings
Production guidance
Use these notes to decide when the component belongs in a product workflow and what to verify before shipping.
When to use
Use between content groups when spacing alone is insufficient; avoid separators after every list item.
Watch for
Visible labels are supported only for horizontal dividers; vertical dividers stretch to their flex or grid container.
Product recipes
Apply Divider in distinct, copyable product scenarios—not just an isolated component state.
Section divider
A visible label can introduce a meaningful subsection.
1
<ui-divider label="Advanced" [decorative]="false" />Menu group boundary
Use an unlabeled divider only where surrounding menu labels already explain the grouping.
1 2 3 4 5 6
<nav aria-label="Account">
<a href="/profile">Profile</a>
<a href="/preferences">Preferences</a>
<ui-divider />
<button type="button" class="text-red-700">Sign out</button>
</nav>API Reference
Inputs and outputs are semver-sensitive public API. Keep examples aligned with this table.
Inputs
orientation 'horizontal' 'horizontal' | 'vertical' Visual and semantic separator direction.
inset 'none' 'none' | 'start' | 'end' | 'both' Consistent edge spacing for grouped content.
label '' string Optional visible horizontal section label.
decorative true boolean Uses presentation semantics unless the separation carries meaning.
| Name | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Visual and semantic separator direction. |
inset | 'none' | 'start' | 'end' | 'both' | 'none' | Consistent edge spacing for grouped content. |
label | string | '' | Optional visible horizontal section label. |
decorative | boolean | true | Uses presentation semantics unless the separation carries meaning. |
Accessibility
- Decorative dividers are hidden from assistive technology; meaningful dividers expose separator, orientation, and an optional name.
Keyboard behavior
- Divider is not interactive and does not enter the tab order.
Testing guidance
- Assert decorative versus separator semantics, orientation, label, dark border classes, and all inset modes. No harness is needed for this static component.