31 lines
693 B
Vue
31 lines
693 B
Vue
<script setup>
|
|
import { cn } from "@/lib/utils";
|
|
import { Separator } from '@/Components/ui/separator';
|
|
|
|
const props = defineProps({
|
|
class: { type: null, required: false },
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
data-slot="field-separator"
|
|
:data-content="!!$slots.default"
|
|
:class="
|
|
cn(
|
|
'relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2',
|
|
props.class,
|
|
)
|
|
"
|
|
>
|
|
<Separator class="absolute inset-0 top-1/2" />
|
|
<span
|
|
v-if="$slots.default"
|
|
class="bg-background text-muted-foreground relative mx-auto block w-fit px-2"
|
|
data-slot="field-separator-content"
|
|
>
|
|
<slot />
|
|
</span>
|
|
</div>
|
|
</template>
|