Skip to main content
Neural UIv2.0.0Documentation
View v1 GitHub

Divider

Separate related sections horizontally or vertically.

Category
Layout and content
Import
@neural-ui/core/divider
Selector
neu-divider
import { NeuDividerComponent } from '@neural-ui/core/divider';

Usage

Divider renders a separator with an optional label. Use orientation="horizontal" between stacked sections. For a vertical separator, place it in a flex row with a defined or content-driven height; the surrounding layout supplies its available height. label is a string input, not projected content.

Examples

Try the example and open Code to see its full implementation. Reset restores the initial demonstration state.

Examples

Account

Notifications and language

Profile
Security

Try and configure

Change the options and inspect the live preview. The generated template stays next to the controls; Code contains the complete executable source.

Try and configure

Live preview

Contact details

Delivery address

Generated template: reflects the configuration above. Open Code for the complete imports and state.

template.html
<neu-divider
  orientation="horizontal"
/>

Data and content

The application supplies the Inputs and owns any surrounding interaction. This component has no model bindings or Outputs. Content projection and icon templates are documented separately where supported.

Accessibility and keyboard

The separator exposes its orientation and is not focusable or resizable. A divider does not replace a section heading or document structure. Use headings and landmarks to organize important content; use Divider to reinforce the visual boundary.

Key
Action
โ€” No component-level keyboard interaction; projected buttons and links keep their own keyboard behavior.

API

All public Inputs are extracted from the pinned Core package. Named types link to their definitions. Only the actual public projection areas and templates are listed below.

Inputs

Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.

Name
Type
Default
Template binding
Description
labelstring''[label]Optional text within the separator; not a content template.
orientation"horizontal" | "vertical"'horizontal'[orientation]horizontal or vertical separator orientation.

Templates

ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.

This component does not expose content projection or public customization templates.

Styles and tokens

The public border token controls the line, muted text controls the label, and spacing tokens separate both. Vertical dividers need a stretching flex parent, as shown in the example source.

Specific tokens

This component uses shared theme tokens rather than dedicated component hooks.

Shared tokens used

Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.

Token
Purpose here
Other impact
Default / fallback
--neu-border Normal control and cell borders Shared by other Core consumers; scope the override. rgba(15, 23, 42, 0.08)
--neu-text-muted Secondary labels and supporting content Shared by other Core consumers; scope the override. #475569
--neu-font-sans Text typography Shared by other Core consumers; scope the override. 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif
--neu-space-2 Spacing between content and controls Shared by other Core consumers; scope the override. 0.5rem
--neu-space-3 Spacing between content and controls Shared by other Core consumers; scope the override. 0.75rem
--neu-text-xs Text size Shared by other Core consumers; scope the override. 0.75rem