Skip to content

Divider

Separates two sections. Without children it renders a plain <hr class="hr">; with children, a labeled rule (hr-text).

position aligns the label: start, center (the default) or end.

variant colors the label (text-{variant}):

spaceless replaces the vertical margin of a labeled divider with a small negative one (hr-text-spaceless), for a label between rows that already have padding, such as list items:

position, variant and spaceless only apply to a labeled divider: the plain <hr> ignores them.

Prop Type Default Description
position string 'center' start center end: label alignment
variant string? null primary secondary success danger warning info dark light
spaceless bool false No vertical margin around the label (hr-text-spaceless)

Other attributes go to the root <div class="hr-text"> or <hr class="hr">.

Block Default
content Empty: the children, the label. Empty or blank renders an <hr>