Separator

A thin dividing line that visually or semantically separates content. Use it between sections of a list, groups of controls in a toolbar, or blocks of text. Renders horizontally by default; switch to vertical inside a flex row to divide inline items.

Horizontal

A functional separator between groups of content — not a surface edge. If what you want is to show that a panel is a panel, give it bg-card instead; a surface separates from the page by tone alone.

Account

Signed in as ada@example.com

Billing

Visa ending 4242

Vertical

orientation="vertical" spans its parent's full height, so the parent has to have one — a flex row with a set height, typically a toolbar.

Draft Edited 2h ago 3 collaborators

API

Prop Type Default Description
orientation 'horizontal'|'vertical' 'horizontal'

Direction of the divider. Horizontal spans full width; vertical spans full height and needs a sized parent.

class string

Additional Tailwind classes merged onto the divider (e.g. color or margin overrides).