Skip to content

Separator

Separate related groups of content.

Demos

Variant

Project overview

Recent activity

Usage

vue
<script setup lang="ts">
import { Accordion } from '~/components/ui/accordion'

const items = [
  { value: 'source', label: 'Do I own the source?', content: 'Yes. Copy and adapt the files.' },
]
</script>

<template>
  <Accordion :items="items" />
</template>

For a vertical separator, give its flex container a defined height, such as h-16. Horizontal separators fill the available width.

Installation

Complete the shared installation. Copy Separator.vue and index.ts into app/components/ui/separator/.

API

Variants and defaults

PropValuesDefault
variantdefault, muteddefault

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the separator line.
decorativebooleanfalseWhen true, renders as role="none" (purely visual).
asstring"div"Root element tag.
uiSeparatorUi—Classes for the root element.