Appearance
Separator
Visually or semantically separates content.
Examples
Default
Radix Primitives
An open-source UI component library.
Blog
Docs
Source
vue
<div class="w-full max-w-sm">
<div class="space-y-1">
<h4 class="text-sm font-medium leading-none">Radix Primitives</h4>
<p class="text-sm text-muted-foreground">
An open-source UI component library.
</p>
</div>
<Separator class="my-4" />
<div class="flex h-5 items-center space-x-4 text-sm">
<div>Blog</div>
<Separator orientation="vertical" />
<div>Docs</div>
<Separator orientation="vertical" />
<div>Source</div>
</div>
</div>Props
Separator
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | horizontal | vertical | horizontal | The orientation of the separator. |
| decorative | boolean | true | Whether the separator is decorative. |
| class | string | - | Custom classes to apply to the separator. |
Slots
Separator
| Slot | Description |
|---|---|
| default | The content of the separator. |
