Divider
A line across, with a word or two in the middle if you like: "or" between two ways to sign in, a date between messages, a heading between groups.
Divider
or
<div class="max-w-sm mx-auto">
<button class="btn w-full" type="button"><i class="mi mi-github" aria-hidden="true"></i> Continue with GitHub</button>
<div class="divider">or</div>
<div class="form-field"><label class="form-label" for="dv-email">Email</label><input class="form-control" id="dv-email" type="email"></div>
<button class="btn btn-brand w-full" type="button">Continue with email</button>
</div>Kinds
Earlier this week
Yesterday
Section
<div class="divider"></div>
<div class="divider divider-start">Earlier this week</div>
<div class="divider divider-end">Yesterday</div>
<div class="divider divider-strong">Section</div>Vertical rule
.vr is a thin upright line between things in a row; it stretches to the row's height.
<div class="hstack gap-3 text-sm"><span>12 posts</span><div class="vr"></div><span>3 drafts</span><div class="vr"></div><a href="#">Settings</a></div>Classes
| Class | Does |
|---|---|
.divider | A faint line with text in the middle (empty: just the line) |
.divider-start / -end | Text near the start / end |
.divider-strong | A full-strength line and text |
.vr | A vertical line in a row (the text color, faded) |
A plain line with no text is also just <hr>. Screen readers read the divider's words, so keep them meaningful ("or", a date).