Skip to content

Separator

Horizontal or vertical divider with proper ARIA semantics. Built on Reka UI's Separator primitive.

bash
npm install @vuecs/elements
vue
<script setup lang="ts">
import { VCSeparator } from '@vuecs/elements';
</script>

<template>
    <p>First section</p>
    <VCSeparator />
    <p>Second section</p>

    <div class="flex h-8 items-center gap-3">
        <span>Left</span>
        <VCSeparator orientation="vertical" />
        <span>Right</span>
    </div>
</template>
css
@import "tailwindcss";
@import "@vuecs/design";
@import "@vuecs/elements";

@custom-variant dark (&:where(.dark, .dark *));

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Layout direction.
decorativebooleantrueWhen true, the separator is removed from the a11y tree (role="none"). Set false to expose it as role="separator" with aria-orientation.
themeClassPartial<SeparatorThemeClasses>undefinedPer-instance theme override.
themeVariantRecord<string, string | boolean>undefinedPer-instance variant values.

Theme keys

KeyDefault classNotes
rootvc-separatorSized off data-orientation (horizontal / vertical).

Released under the Apache 2.0 License.