Prodular UI

Layout

Separator

A 1px hairline that divides content inside a container, horizontally or vertically.

npx prodular-ui add separator

Horizontal and vertical

Horizontal between sections, vertical between inline metadata.

Halden Analytics

Workspace on the Team plan, billed annually.

18 membersEU regionCreated Mar 2024

Anatomy

<Separator /><Separator orientation="vertical" />

Guidance

Use it when

  • Splitting sections inside a card, popover or panel instead of adding another box.
  • Dividing inline metadata such as counts and dates.

Avoid

  • Separators between every element. Spacing alone often groups better.
  • Thicker or colored rules. Hierarchy comes from type and spacing.

Rules for AI agents

Published in llms-full.txt and the registry, so coding agents follow them when they build with this component.

  • Prefer divide-y or border-t on a list over many Separator elements.
  • For a vertical Separator, give the parent a fixed height (h-4 or h-5) and items-center.
  • Separator is decorative by default. Do not use it to convey meaning.

API

Separator

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the line.