Zazz Design Framework
Components

Separator

A themed rule between content or controls, horizontal or vertical, on a native hr.

.ui-separator styles the native <hr> element with its implicit role="separator" instead of rebuilding one from a div. data-orientation="vertical" turns it into a column rule that stretches to the row height in flex and grid layouts. Spacing uses composition: add margin utilities like my-xs or mx-xs.

Separators come in two types. A meaningful separator marks a content boundary that assistive tech should announce. Keep the implicit role and add aria-orientation="vertical" on the vertical form, because assistive tech assumes separators are horizontal by default. A purely decorative separator takes role="presentation" to stay out of the accessibility tree.

Default

Loading components…

API

AttributeTargetValues
data-orientation.ui-separatorvertical: column rule for flex/grid rows
aria-orientation.ui-separatorvertical: pair with the above when the separator is meaningful
role.ui-separatorpresentation: for purely decorative separators
Tokens:root--ui-separator-color, --ui-separator-thickness

On this page