Divider
A visual separator between content sections. Supports horizontal and vertical orientation, variants, and an optional inline label.
Basic Usage
With Label
Center a text label within the divider line.
Vertical Orientation
Use inside a Row to separate items horizontally.
Variants
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation |
string | 'horizontal' |
horizontal or vertical |
variant |
string | 'default' |
default, subtle, bold |
label |
string|null | null |
Centered text label (horizontal only) |
scope |
string|null | null |
Scoped personalization name |
Accessibility
The divider renders with role="separator". Vertical dividers include aria-orientation="vertical". Horizontal dividers without a label render as <hr> elements for semantic correctness.
Keyboard Interaction
This component is purely presentational and does not respond to keyboard input.
Design Tokens
| Token | Used for |
|---|---|
--color-wk-border |
Default border color |
--color-wk-border-subtle |
Subtle variant |
--color-wk-border-strong |
Bold variant |
--color-wk-text-muted |
Label text color |
--text-wk-sm |
Label font size |
Usage & Conventions
Prop conventions — this component uses one or more of the shared semantic prop names (
intent/variant/tone/surface). See Prop naming conventions for the canonical vocabulary, alias matrix, and decision tree.