Divider

A thin rule that separates groups of content, horizontally or vertically, optionally with a short label. Prefer spacing alone where it already makes the grouping clear.

  • vig-divider
Import
import { Divider } from '@vigdx/ui/divider';

Basic

A horizontal divider spans the width of its container.

Order #20418 was shipped on 4 November.

Delivery is expected within two to three working days.

With a label

label puts short text inside the rule; align places it at the start , center (default) or end , following the text direction.

or
TodayEnd of results

Vertical

orientation="vertical" separates inline items such as toolbar groups or footer links. It stretches to the height of its flex row.

Styling hooks

Internal elements carry a stable data-part and the component's data-scope; both are public API, so removing one is a breaking change. Select a part by both, e.g. [data-scope="divider"][data-part="line"] { … }: the pair stays within this component when kit components nest, and also reaches parts in overlay panels, which render outside the host. State is exposed through aria-* and, where listed, a data-state; literal values are checked by the API gate, values computed from the component's state follow its documented types. Other data-* attributes listed below (such as data-opening while an overlay animates) are API too. See Customizing.

Scope: [data-scope="divider"]

Divider styling hooks
Part Element data-state
line A rule segment. —
label The label text. —

Accessibility

  • The host is role="separator" with aria-orientation, so screen readers can announce the boundary between groups.
  • A label also becomes the separator's accessible name.
  • The separator is static and never focusable. For purely visual lines that separate nothing meaningful, use a CSS border instead so the boundary is not announced.

API

Divider

vig-divider component

Thin rule separating content, optionally carrying a label. The label is placed at the inline start, centre or end, with the rule filling the rest.

Divider props
Name Type Default Description
alignDividerAlign'center'
—
labelstring | undefinedundefined

Optional text shown within the rule, e.g. "or".

orientationDividerOrientation'horizontal'
—

Are you sure?