Skip to content

Divider

A horizontal rule or labeled section separator.

Basic usage

A plain divider with no label.

Section above

Section below

Tailwind v4
vue
<Divider />

With label

Pass label to show centered text between the lines.

Previous items

New items

Tailwind v4
vue
<Divider label="OR" />

Variants

Dashed

Tailwind v4
vue
<Divider variant="dashed" />

Dotted

Tailwind v4
vue
<Divider variant="dotted" />

Dashed with label

Tailwind v4
vue
<Divider label="Continue reading" variant="dashed" />

Custom color

Tailwind v4
vue
<Divider color="#2563eb" label="Highlight" />

Props

PropTypeDefaultDescription
labelstringundefinedOptional centered text label
variant'solid' | 'dashed' | 'dotted''solid'Line style
colorstring'#e5e7eb'CSS color value for the line

Private — Jetpack Labs internal use only