Separator

A hairline that divides content horizontally or vertically.

@cupertinoui/separatorBase UI Separator Registry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/separator

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Separator />

API Reference

Every part forwards the props of the underlying Base UI Separator part. The props below are the ones CupertinoUI adds or changes.

Separator

PropTypeDescription
orientation"horizontal" | "vertical"
Default: "horizontal"
The direction of the line.
classNamestringExtra classes, merged with the component's own.