Skip to content
Drivn logoDrivn

Separator

Visual divider between content sections.

Preview

Content above

Content below

LeftRight

Installation

npx drivn add separator

Usage

1import { Separator } from "@/components/ui/separator"
2
3export default function Page() {
4 return (
5 <div>
6 <p>Content above</p>
7 <Separator />
8 <p>Content below</p>
9 </div>
10 )
11}

API Reference

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the separator line
classNamestringAdditional CSS classes to apply