Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Separator for React and Tailwind

Visually separate content with a line.

shadcn.io

A set of primitive components for building UI.

A collection of accessible, beautiful, and customizable components.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/separator.json

Usage

import { Separator } from "@/components/ui/separator";
<Separator />

Examples

Vertical

Use orientation prop to control the orientation of the separator.

List

API Reference

Separator

Horizontal or vertical divider between content.

PropTypeDefault
orientation"horizontal" | "vertical""horizontal"
classNamestring-

For complete list of props, see Ark UI documentation.