Trên trang này

Trang này chưa có bản tiếng Việt, nội dung bên dưới là bản tiếng Anh. Xem trang tiếng Anh

Separator

Install, props and the parts Separator is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/separator.json

Use

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

<template>
  <div>
    <Separator />
    <Separator orientation="vertical" class="h-4" />
  </div>
</template>

Props

Part Prop Values Notes
Separator orientation, decorative horizontal/vertical, boolean decorative (default) hides it from screen readers

Built on

reka-ui Separator, as the shadcn-vue Separator.