Separator

Base UI separator drawn as a one-pixel border-colored line. Horizontal by default; the vertical orientation stretches to the height of its flex parent.

Open the preview in a new tab
import { Separator } from "@/components/ui/separator"

/** Separator, horizontal between two blocks of text and vertical between three words. */
export default function SeparatorDemo() {
  return (
    <div className="w-full max-w-sm">
      <p className="text-sm/6 font-medium text-foreground">Orbcore Studio</p>
      <p className="text-sm/6 text-muted-foreground">
        Components, issued like art.
      </p>
      <Separator className="my-4" />
      <div className="flex items-center gap-4 text-sm/6 text-muted-foreground">
        <span>Blocks</span>
        <Separator orientation="vertical" className="h-4" />
        <span>Scenes</span>
        <Separator orientation="vertical" className="h-4" />
        <span>Orbs</span>
      </div>
    </div>
  )
}

Installation

pnpm dlx shadcn add @01orbital/separator
npx shadcn add @01orbital/separator
yarn shadcn add @01orbital/separator
bunx --bun shadcn add @01orbital/separator

Add the @01orbital registry to components.json once (install guide), then run the command.

It lands at components/ui/separator.tsx, as source you own and edit.

Dependencies

npm: @base-ui/react, cn. The CLI installs them for you.

No other registry pieces.

On this page