Skip to content

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

PropTypeDefaultDescription
orientationhorizontal | verticalhorizontalThe orientation of the separator.
decorativebooleantrueWhether the separator is decorative.
classstring-Custom classes to apply to the separator.

Slots

Separator

SlotDescription
defaultThe content of the separator.