Separator

Installation

Add the component with the CLI.

npx shadcn@latest add @intentui/separator

Manual installation

Install the dependencies, then copy the component source into your project.

npm install react-aria-components cn

Anatomy

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

<Separator orientation='vertical | horizontal' />

Examples

Orientation

Separator has two orientations: horizontal and vertical. The default is horizontal.

Component API

Separator extends the React Aria Components <Separator> component.

classNamestring

See the React Aria useSeparator reference for the full API reference.

Design