Skip to content

Divider

A thin line between two parts, horizontal or vertical, with an optional label in the middle.

  • .aparte-divider
On this page
Open

.aparte-divider separates two parts of a panel: horizontal by default, vertical between items in a row, and labelled when a word helps (“or”). The line is a border, not a background, so it stays visible in forced-colours mode.

VariableDefault
--aparte-divider-marginvar(--aparte-space-5)
--aparte-divider-label-gapvar(--aparte-space-4)
--aparte-divider-label-font-sizevar(--aparte-font-size-sm)

.aparte-divider · .aparte-divider--label · .aparte-divider--vertical · .aparte-divider__label

  • A divider that separates sections can be an <hr>, or carry role="separator"; one that is only visual takes aria-hidden="true".
  • Card — a surface with its own header and footer.
  • Menu — its separators between groups of items.