Separator
A visual divider that separates content with support for vertical and horizontal orientations.
Usage
The Separator component creates a separation between content sections.
Separator Props
Prop | Type | Default |
---|---|---|
size | "small" | "half" | "full" | "full" |
color | "primary" | "secondary" | "tertiary" | "primary" |
orientation | "horizontal" | "vertical" | "horizontal" |
className | string | - |
Examples
Color
The Separator component supports three colors.
Size
The Separator component supports three sizes.
Orientation
Separator can be rendered in both horizontal and vertical orientations.
Accessibility
The Separator component follows accessibility best practices:
- Uses
role="separator"
by default - Is marked as
decorative
for visual separation - Maintains proper color contrast
- Supports proper semantic structure in both orientations