Divider

zyra-divider

Horizontal and vertical separators for organizing content sections, form layouts, and navigation groups.

Above the divider

Below the divider

API

All inputs and configuration options for zyra-divider.

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Line direction
variant'solid' | 'dashed' | 'dotted''solid'Line stroke style
align'start' | 'center' | 'end''center'Alignment of the optional label along the line
labelstring''Optional text label centered on the divider (e.g. "or")
widthstring'1px'CSS thickness of the divider line (e.g. "2px")

Accessibility

Built to meet WCAG 2.0 AA. These notes cover the key ARIA, keyboard, and interaction behaviours.

  • Renders with role="separator" for screen reader context
  • Vertical dividers should have aria-orientation="vertical"
  • When used decoratively, add aria-hidden="true"