GitHub55X

Separator

Vue separator to visually or semantically divide sections of content and menus.

PreviousNext

Features

  • Horizontal or vertical — Use the orientation prop to switch layout direction
  • Styled default — A subtle bg-border line that adapts to orientation
  • Customizable — Override with the class prop

Installation

Install from the Vuzeno registry:

      
      bunx --bun shadcn-vue@latest add https://vuzeno.com/r/separator.json
    

Usage

      
      <script setup lang="ts">
import { Separator } from "@/components/ui/separator";
</script>

<template>
  <Separator />
</template>
    

Examples

Vertical

Use orientation="vertical" for a vertical separator.

Vertical separators between menu items with descriptions.

List

Horizontal separators between list items.

API

Separator

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Layout direction of the separator
classstringAdditional CSS classes