mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-02 21:13:47 +00:00
29 lines
728 B
Vue
29 lines
728 B
Vue
<script setup>
|
|
import { reactiveOmit } from '@vueuse/core';
|
|
import { Separator } from 'reka-ui';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
const props = defineProps({
|
|
orientation: { type: String, required: false, default: 'horizontal' },
|
|
decorative: { type: Boolean, required: false, default: true },
|
|
asChild: { type: Boolean, required: false },
|
|
as: { type: null, required: false },
|
|
class: { type: null, required: false },
|
|
});
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class');
|
|
</script>
|
|
|
|
<template>
|
|
<Separator
|
|
v-bind="delegatedProps"
|
|
:class="
|
|
cn(
|
|
'shrink-0 bg-border',
|
|
props.orientation === 'horizontal' ? 'h-px w-full' : 'w-px h-full',
|
|
props.class,
|
|
)
|
|
"
|
|
/>
|
|
</template>
|