Skip to main content

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​

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Direction of the line. label and inset only apply when horizontal.
thicknessnumberLine thickness in px.
colorTVajraColors'border'Line color token.
variant'solid' | 'dashed' | 'dotted'Line style.
insetTSpacingTokenMargin pulled in from both ends of the line.
labelstringText centered on the line.