Skip to content

Separator


<hr class="separator" />
Edit
Duplicate
Delete
<div style="display: flex; align-items: center; gap: 0.75rem">
<span>Edit</span>
<hr class="separator separator-vertical" aria-orientation="vertical" />
<span>Duplicate</span>
<hr class="separator separator-vertical" aria-orientation="vertical" />
<span>Delete</span>
</div>

Net promoter score

Last 30 days.


+42
<div class="card">
<div class="card-body">
<h3 class="card-title">Net promoter score</h3>
<p class="card-description">Last 30 days.</p>
</div>
<hr class="separator" />
<div class="card-body">
<strong>+42</strong>
</div>
</div>

A vertical rule needs aria-orientation="vertical" — the implicit role="separator" on <hr> reports horizontal otherwise. React’s orientation prop sets it; in vanilla, write it yourself.

Prop Type Default
orientation "horizontal" | "vertical" "horizontal"

Plus native <hr> attributes.

Class Effect
separator 1px full-width rule in the border colour, margins zeroed. Works on <hr> or any block
separator-vertical 1px wide, stretches to the flex line, 1lh minimum so it stays visible in a non-stretching row

Margins are zeroed — spacing comes from the parent’s gap or margin utilities. Menus and Breadcrumbs keep their own scoped separators.