Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 763 Bytes

separator.md

File metadata and controls

31 lines (20 loc) · 763 Bytes

Separator

A line between groups of content, horizontal or vertical.

Example

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

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

Props

interface SeparatorProps extends BaseSeparator.Props {
  orientation?: "horizontal" | "vertical"; // default "horizontal"
}

Wraps Base UI's Separator: a <div role="separator"> with aria-orientation.

Rules

  • Prefer space over lines. Use a separator only where space-6 alone doesn't make the groups clear.
  • In a ToggleGroup, a vertical Separator splits clusters. Menus use Menu.Separator.

Style

  • 1px line. A vertical separator stretches to the height of its row.