Separator
Visually or semantically separates content.
Usage
Slate UI
An open-source UI component library.
Blog
Docs
Source
Horizontal
Account
Manage your profile and preferences.
Billing
Invoices, plans, and payment methods.
Vertical
Vertical separators need a definite height from the parent.
Blog
Docs
Source
Semantic separator
Set decorative="false" when the divider conveys structure to assistive tech.
Section one
Section two
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
orientation |
horizontal | vertical |
horizontal |
Divider axis |
decorative |
bool |
true |
When true, hidden from the accessibility tree |
as |
string |
div |
Root HTML element |