Section A
Section B

Left
Center
Right

Separator

A visual divider between content sections.

A separator component for dividing content.

Orientations

Horizontal

Content above


Content below

Vertical

Left
Right

Usage

import { Separator } from "@delphi/ui";

export function Example() {
  return (
    <div>
      <p>Above</p>
      <Separator className="my-4" />
      <p>Below</p>
    </div>
  );
}

API Reference

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the separator
decorativebooleantrueWhether the separator is purely visual
Use separators to group related content visually
Set decorative={false} and add aria-label for meaningful divisions
Use consistent spacing around separators
Use vertical separators in toolbars or inline layouts
Keep separators subtle โ€” they shouldn't compete with content
Overuse separators โ€” whitespace often works better
Use separators where margins or padding would suffice
Make separators too prominent with heavy colors or thickness
Use separators inside components that already have visual boundaries
ESC
No results found