2024-12-25 20:46:14 +01:00
|
|
|
<script setup lang="ts">
|
2025-03-28 01:16:24 +01:00
|
|
|
import type { SeparatorProps } from "reka-ui";
|
|
|
|
|
import { Separator } from "reka-ui";
|
2025-06-26 22:39:02 +02:00
|
|
|
import { computed, type HTMLAttributes } from "vue";
|
|
|
|
|
import { cn } from "@/lib/utils";
|
2024-12-25 20:46:14 +01:00
|
|
|
|
|
|
|
|
const props = defineProps<
|
2025-03-28 01:16:24 +01:00
|
|
|
SeparatorProps & { class?: HTMLAttributes["class"] }
|
2024-12-25 20:46:14 +01:00
|
|
|
>();
|
|
|
|
|
|
|
|
|
|
const delegatedProps = computed(() => {
|
|
|
|
|
const { class: _, ...delegated } = props;
|
|
|
|
|
|
|
|
|
|
return delegated;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-03-28 01:16:24 +01:00
|
|
|
<Separator
|
2025-04-10 13:55:56 +02:00
|
|
|
data-slot="command-separator"
|
2024-12-25 20:46:14 +01:00
|
|
|
v-bind="delegatedProps"
|
2025-04-10 13:55:56 +02:00
|
|
|
:class="cn('bg-border -mx-1 h-px', props.class)"
|
2024-12-25 20:46:14 +01:00
|
|
|
>
|
|
|
|
|
<slot />
|
2025-03-28 01:16:24 +01:00
|
|
|
</Separator>
|
2024-12-25 20:46:14 +01:00
|
|
|
</template>
|