compacto-ui

Search documentation

Jump to a page or a component.

Separator

Hairline rule on app-border, never competing with its content.

Preview

One
Two
Three

Installation

No install — ask an AI agent to copy this component from registry.json.

import { Separator } from "@/components/ui/separator";

Notes

  • Sits on app-border — the hairline tone, not the text color — so a divider never competes with the content on either side.
  • Decorative by default, and therefore hidden from assistive tech. Set decorative={false} when the rule carries real structural meaning.

Props

The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Rule direction.
decorativebooleantrueHide from assistive tech.