Duolith docs

Divider

A thin line between content, horizontal or vertical, with an optional label in the middle.

Stability: experimental

Props

PropTypeDefaultMeans
labelstringA word in the middle of the line, such as or.
insetbooleanfalseStarts the line 16 pixels in, to line up with text.
verticalbooleanfalseA vertical line between items in a row.

States

StateLooks like
defaultA 1px line in the border colour.

Accessibility

roleseparator
nameThe label, if any.
focusNever focused.

Theme tokens

color.border color.muted space.3 space.4 text.caption

Example

<Divider label="or" />