Divider
A styled Separator with two extra affordances: an inset margin and a centered label (e.g. "OR").
Playground
Above
OR
Below
<Divider label="OR" />
Plain
Above
Below
<Text variant="body">Above</Text>
<Divider />
<Text variant="body">Below</Text>
With a label
OR
<Divider label="OR" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the line. label and inset only apply when horizontal. |
thickness | number | Line thickness in px. | |
color | TVajraColors | 'border' | Line color token. |
variant | 'solid' | 'dashed' | 'dotted' | Line style. | |
inset | TSpacingToken | Margin pulled in from both ends of the line. | |
label | string | Text centered on the line. |