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

Styling

Headless separator styling is intentionally compact. The primitive gives you slot and orientation hooks, and your layout decides spacing, thickness, and contextual emphasis.

Slot and owner hooks

SelectorWho owns itTypical use
[data-slot="separator"]LibraryBase line color, opacity, and shared divider transitions.
[data-orientation="horizontal"]LibraryHorizontal height and width rules.
[data-orientation="vertical"]LibraryVertical width and minimum height rules.
.toolbar / .stackYouContext-specific spacing and divider placement in the surrounding layout.

CSS starter

Headless separator starter CSS

css
[data-slot="separator"] {
  background: var(--tng-semantic-border-strong);
  display: block;
}

[data-slot="separator"][data-orientation="horizontal"] {
  block-size: 1px;
  inline-size: 100%;
}

[data-slot="separator"][data-orientation="vertical"] {
  inline-size: 1px;
  min-block-size: 1rem;
}

.toolbar [data-slot="separator"] {
  margin-inline: 0.5rem;
}

Practical guidance

  • Keep divider thickness on the primitive hook and container spacing on the surrounding layout.
  • Use lower-contrast separators for decorative grouping and stronger contrast for semantic breaks.
  • Avoid stretching vertical separators with arbitrary heights when the container can provide natural alignment.