Malevich

Primitives/

Divider

Horizontal or vertical separator.

Divider

A visual separator between content blocks. CSS-only, no runtime.

When to use

Use a divider to visually separate sections of content where the separation is meaningful but doesn't need to be a full structural break (a heading or section element).

If you need a divider with embedded text ("or sign in with"), use Form-divider from elements/form/ instead.

Variants

Variant Class Use for
Default .divider Standard separation, hairline weight
Strong .divider.-strong More prominent separation
Muted .divider.-muted Subtle separation
Emphasis .divider.-emphasis Thicker rule for stronger visual division
Vertical .divider.-vertical Inline separator in flex/grid rows

Modifiers compose: .divider.-vertical.-strong is allowed.

Anatomy

<hr class="divider" />
<hr class="divider -strong" />
<hr class="divider -muted" />
<hr class="divider -emphasis" />

<div style="display:flex; align-items:center; gap:1rem;">
  <span>Left</span>
  <hr class="divider -vertical" />
  <span>Right</span>
</div>

Tokens used

From semantic tier

Accessibility

<hr> has implicit role="separator". For vertical dividers, browsers treat the element as decorative if aria-orientation is not provided — this is acceptable for visual-only separation. If the orientation is semantically meaningful, the author should add aria-orientation="vertical".

The default rendering does not appear in document outline (the rule is purely visual). Screen readers may announce the separator depending on the user's preferences.

Edge cases

Do

Don't