Separator

Hairline separator on Base UI that draws a 1px rule horizontally or vertically, stretching to fill its container. A drop-in shadcn Separator for React layouts.

src/registry/ui/separator.tsx/r/separator.json

Installation#

bash
npx shadcn@latest add @minidev/separator

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/separator.json

Usage#

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

export function Example() {
  return <Separator />
}

API reference#

Also accepts every prop of SeparatorPrimitive props, passed through to the root element.

Dependencies#

npm

@base-ui/react

Built from

No other MiniDev files
All layout components