Divider
vig-divider
import { Divider } from '@vigdx/ui/divider';Basic
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.
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"]
| Part | Element | data-state |
|---|---|---|
line | — | |
label | — |
Accessibility
- The host is
role="separator"witharia-orientation, so screen readers can announce the boundary between groups. - A
labelalso 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-dividerThin rule separating content, optionally carrying a label. The label is placed at the inline start, centre or end, with the rule filling the rest.
| Name | Type | Default | Description |
|---|---|---|---|
align | DividerAlign | 'center' | — |
label | string | undefined | undefined | Optional text shown within the rule, e.g. "or". |
orientation | DividerOrientation | 'horizontal' | — |