Usage
The Divider component creates a visual separator between content sections. It supports both horizontal and vertical orientations, and can optionally display a label.Examples
Basic Divider
With Label
Vertical Divider
Props
The orientation of the divider. Use
vertical inside flex containers.Optional text label displayed in the center of a horizontal divider.
Additional CSS classes to apply to the divider.
Accessibility
- Uses the semantic
role="separator"attribute - Includes appropriate
aria-orientationfor screen readers - Horizontal dividers without labels render as
<hr>elements