Separator
Horizontal or vertical divider.
Installation
bun add @xerobi/ui
import { Separator } from "@xerobi/ui/separator"This component is client-side. In Astro, hydrate it with a client directive.
Examples
Default
Xerobi UI
Components and blocks.
DocsSource
import { Separator } from "@xerobi/ui/separator"
export function SeparatorDefault() {
return (
<div className="w-56 text-body2">
<p className="text-subtitle2">Xerobi UI</p>
<p className="text-text-secondary">Components and blocks.</p>
<Separator className="my-3" />
<div className="flex h-5 items-center gap-3">
<span>Docs</span>
<Separator orientation="vertical" />
<span>Source</span>
</div>
</div>
)
}API reference
Separator
Also accepts every prop of Base UI Separator.
No props of its own.
Styling hooks: [data-slot="separator"].