Skip to content
Fleetline

Divider

Usage

Use a divider to separate groups that spacing alone can't separate: the totals row of a parts list, two groups of toolbar actions, alternative sign-in methods. Prefer whitespace first — every line adds visual noise to dense dispatcher screens.

Anatomy

  1. Line — 1px --color-border-default (.divider--strong for 3:1)
  2. Label (optional) — centered text between two lines, .divider-label

Examples

Divider

Front brake pads (set) · 2 × €48.00


Parts total · €96.00

Van KX-219 84,210 km Bay 4
or
<hr class="divider">

<span class="divider divider--vertical" role="separator" aria-orientation="vertical"></span>

<!-- Labelled: the text is read as normal text, the lines are decoration -->
<div class="divider-label"><span>or</span></div>

API

HookValuesPurpose
hr.dividerblock classHorizontal semantic separator
.divider--vertical + role="separator" aria-orientation="vertical"modifier + ARIAVertical separator in a row
.divider--strongmodifier class3:1 line when the line itself must be perceived
.divider-labelblock classLabelled break
aria-hidden="true"attributePurely decorative divider that shouldn't be announced

Do and don't

Labour · 1.5 h


Total · €171.00

Do use a divider to set off a summary row.

Plate


Make


Model

Don't put a line between every item; use spacing or a list.

Accessibility

Tokens

Custom propertyPurpose
--border-width-thinLine weight
--color-border-default | -strongLine color
--color-text-muted, --typography-small-*Label text
--space-3 | -6Label gap; minimum vertical length