Separator

A themed one-pixel rule for visually or semantically separating content.

Horizontal

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.

Vertical
Overview Activity Settings

With Content

A common pattern: flank a label with two separators to create an "or" divider between alternative actions.

Or Divider
OR

List Dividers

Drop separators between dense rows when each item needs a clear visual boundary. Composes naturally with cards and list items.

Settings List

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.

Semantic

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. Use decorative=false for structural breaks.
  • Pass aria-label on semantic separators so assistive technology can announce their purpose.