Divider
A thin line between content, horizontal or vertical, with an optional label in the middle.
Stability: experimental
Props
| Prop | Type | Default | Means |
|---|---|---|---|
label | string | A word in the middle of the line, such as or. | |
inset | boolean | false | Starts the line 16 pixels in, to line up with text. |
vertical | boolean | false | A vertical line between items in a row. |
States
| State | Looks like |
|---|---|
default | A 1px line in the border colour. |
Accessibility
| role | separator |
| name | The label, if any. |
| focus | Never focused. |
Theme tokens
color.border color.muted space.3 space.4 text.caption
Example
<Divider label="or" />