Separator
A visual divider for separating content horizontally or vertically.
Preview
Horizontal
Zostel Manali
A backpacker's paradise in the Himalayas
WiFiCafeBonfireTreks
Usage
tsx
import { Separator } from "zostel-ui";
{/* Horizontal (default) */}
<Separator />
{/* Vertical */}
<div className="flex items-center h-8 gap-4">
<span>Hostels</span>
<Separator orientation="vertical" />
<span>Homes</span>
</div>
{/* Decorative */}
<Separator decorative />Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Direction of the separator line |
decorative | boolean | false | Whether the separator is purely decorative (no semantic meaning) |
className | string | — | Additional CSS classes |
orientationType:
"horizontal" | "vertical"Default: "horizontal"
Direction of the separator line
decorativeType:
booleanDefault: false
Whether the separator is purely decorative (no semantic meaning)
classNameType:
stringDefault: —
Additional CSS classes