Separator
Separator
A visual divider that separates content with support for vertical and horizontal orientations.
Usage
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
decorativefor visual separation - Maintains proper color contrast
- Supports proper semantic structure in both orientations