Separator
Examples
Section titled “Examples”Horizontal
Section titled “Horizontal”<hr class="separator" /><Separator />Vertical
Section titled “Vertical”
Edit
Duplicate
Delete
Duplicate
Delete
Edit
Duplicate
Delete
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><div style={{ display: "flex", alignItems: "center", gap: "0.75rem" }}> <span>Edit</span> <Separator orientation="vertical" /> <span>Duplicate</span> <Separator orientation="vertical" /> <span>Delete</span></div>Splitting card sections
Section titled “Splitting card sections”Net promoter score
Last 30 days.
+42
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><Card.Container> <Card.Body> <Card.Title>Net promoter score</Card.Title> <Card.Description>Last 30 days.</Card.Description> </Card.Body> <Separator /> <Card.Body> <strong>+42</strong> </Card.Body></Card.Container>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.
Reference
Section titled “Reference”| Prop | Type | Default |
|---|---|---|
orientation |
"horizontal" | "vertical" |
"horizontal" |
Plus native <hr> attributes.
Vanilla
Section titled “Vanilla”| 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.