Separator
stableVisually or semantically separates content.
Basic usage
structyl
DocsSource
Examples
Vertical separator
Use orientation="vertical" to separate inline items like nav links.
Horizontal and vertical
Use decorative separators for layout rhythm or semantic separators for regions.
AccountBilling and invoices
DocsAPIExamples
Features
- Horizontal and vertical orientation.
- Decorative or semantic.
Installation
bash
pnpm dlx structyl add separatorAPI Reference
Separator
A visual or semantic divider.
| Prop | Type | Default |
|---|---|---|
| orientation | 'horizontal' | 'vertical'The axis of the separator. | 'horizontal' |
| decorative | booleanWhen true, removes it from the accessibility tree. | true |
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |