Search documentation

Search components and pages

Separator

Visually or semantically separates content.

Swiss UI

DocsRegistrySource
01

Installation

Add the separator component with the shadcn CLI.

bash
npx shadcn@latest add https://swiss.ui.unsanity.ai/r/separator.json
02

Usage

tsx
import { Separator } from "@/components/ui/separator"
03

Examples

Default

Swiss UI

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

<div className="w-64 text-sm">
  <p>Swiss UI</p>
  <Separator className="my-3" />
  <div className="flex h-5 items-center gap-3">
    <span>Docs</span>
    <Separator orientation="vertical" />
    <span>Registry</span>
  </div>
</div>