UI Components
Separator
A horizontal or vertical divider with optional centered label text
Quick Preview
Section A
Section B
OR
Section C
Installation
// Copy the Separator component fromsrc/components/ui/Separator.tsx
Usage
import { Separator } from '@/components/ui/Separator'// Horizontal (default)<Separator />// With label<Separator label="OR" />// Vertical<div className="flex h-8 items-center gap-3"><span>Left</span><Separator orientation="vertical" /><span>Right</span></div>
Examples
Vertical Separator
HomeProductsAbout
In a Login Form
OR
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Direction of the separator |
label | string | - | Optional centered label text |
className | string | - | Additional CSS classes |
Features
- โHorizontal and vertical orientations
- โOptional centered label
- โrole="separator" + aria-orientation
- โServer Component