Separator
A subtle divider for grouping related content and actions.
Workspace
Shared defaults for members, notifications, and visibility.
Security
Protect sign-in flows, sessions, and device approvals.
Billing
Manage invoices, plans, and cost controls for the team.
Separator adds visual rhythm between related blocks without introducing extra layout wrappers. It is built on Radix UI, so you can choose between semantic separators that stay in the accessibility tree and decorative separators that are ignored by assistive technology.
Use it when content or controls need a clear boundary inside cards, menus, sidebars, toolbars, and stacked settings rows. Keep it subtle. A separator should support hierarchy, not become the focal point.
Installation
npx @glass-ui-kit/cli add separatorUsage
Examples
Decorative separators
Use decorative when the divider is purely visual and the surrounding content already makes sense without an accessibility announcement.
Workspace
Shared defaults for members, notifications, and visibility.
Security
Protect sign-in flows, sessions, and device approvals.
Billing
Manage invoices, plans, and cost controls for the team.
Vertical separators
Set orientation="vertical" for compact toolbars, inline actions, or split panes.
Semantic separators
Leave decorative unset when the separator communicates structure. Add an accessible name when that boundary benefits screen reader users.
Incident update
Service status
Authentication recovered across all regions. Monitoring remains active.
Next actions
Confirm delayed jobs, notify stakeholders, and close the status page once queues stabilize.
Accessibility guidance
- Use
decorativefor visual-only dividers inside cards, toolbars, or dense layout groupings. - Keep the default semantic behavior when the separator marks a meaningful section boundary.
- Add
aria-labeloraria-labelledbyfor semantic separators when the boundary needs extra context. - Prefer spacing alone when a visual rule does not improve understanding.
Styling
Separator keeps the line treatment intentionally subtle. Reach for inset first, then use className when a layout needs a shorter rule or custom spacing.
API Reference
Accepts all Radix Separator.Root props.
| Prop | Type |
|---|---|
orientation | "horizontal" | "vertical" |
decorative | boolean |
inset | boolean |
className | string |
aria-label | string |
aria-labelledby | string |
Separator defaults to semantic horizontal output. Switch to decorative only when the line is visual polish rather than meaningful document structure.