Separator
A themed one-pixel rule for visually or semantically separating content.
Sutra UI
Phoenix LiveView components inspired by shadcn/ui.
Installation
Add the dependency, run the installer, delete core_components.
Vertical
Use
orientation="vertical"
inside a container with an explicit height. The separator stretches to
fill its parent.
With Content
A common pattern: flank a label with two separators to create an "or" divider between alternative actions.
List Dividers
Drop separators between dense rows when each item needs a clear visual boundary. Composes naturally with cards and list items.
Account
Profile and security
Notifications
Email and workspace alerts
Billing
Plan and payment details
Semantic Separators
Separators are decorative by default, matching shadcn/ui. Set
decorative=false
when the divider carries document structure — it then exposes
role="separator"
and announces itself to assistive technology.
Account preferences
Team preferences
Notes
-
Separators render as a native
<hr>element — semantically correct for horizontal dividers. -
Vertical separators need a parent with an explicit height (e.g.
flex h-10) since they stretch to fill it. -
Decorative separators set
role="presentation"and are hidden from screen readers. Usedecorative=falsefor structural breaks. -
Pass
aria-labelon semantic separators so assistive technology can announce their purpose.