Getting StartedInstall and bootstrap headless foundations 4
LayoutHeadless structural primitives for expandable and container patterns 6
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
FormHeadless input and selection contracts 17
UtilityReusable action, identity, and clipboard behavior 6
NavigationHeadless trails, trees, menus, and command surfaces 7

Separator overview

Headless separator is a minimal divider primitive. It gives you a stable slot selector, orientation hook, and semantic toggle without imposing extra container structure.

Imports

Import the directive anywhere you need horizontal or vertical dividers in owner-authored layouts.

Headless separator import

ts
import { TngSeparator } from '@tailng-ui/primitives';

Basic composition

Apply the directive to any block element that should render as a divider. Toggle [decorative] only when the separation carries meaning for assistive technology.

Headless separator usage

html
<section class="toolbar">
  <span>Profile</span>
  <div tngSeparator orientation="vertical"></div>
  <span>Security</span>
</section>

<div tngSeparator [decorative]="false"></div>

Style variants

The same primitive divider contract rendered through local CSS or a Tailwind utility shell.

Headless separator overview (plain CSS)

ProfileSecurityBilling

Use semantic separators only when the break carries meaning.

Accessibility baseline

  • Keep decorative true for purely visual dividers.
  • Set [decorative]="false" only when the separator carries structural meaning.
  • Use orientation="vertical" only when the divider is visually vertical.