2024-11-30 00:58:04 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { cn } from "@/lib/utils";
|
2025-04-10 13:55:56 +02:00
|
|
|
import { reactiveOmit } from "@vueuse/core";
|
2025-03-28 01:16:24 +01:00
|
|
|
import { Separator, type SeparatorProps } from "reka-ui";
|
2025-04-10 13:55:56 +02:00
|
|
|
import type { HTMLAttributes } from "vue";
|
2024-11-30 00:58:04 +01:00
|
|
|
|
2025-04-10 13:55:56 +02:00
|
|
|
const props = withDefaults(
|
|
|
|
|
defineProps<SeparatorProps & { class?: HTMLAttributes["class"] }>(),
|
|
|
|
|
{
|
|
|
|
|
orientation: "horizontal",
|
|
|
|
|
decorative: true,
|
|
|
|
|
},
|
|
|
|
|
);
|
2024-11-30 00:58:04 +01:00
|
|
|
|
2025-04-10 13:55:56 +02:00
|
|
|
const delegatedProps = reactiveOmit(props, "class");
|
2024-11-30 00:58:04 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<Separator
|
2025-04-10 13:55:56 +02:00
|
|
|
data-slot="separator-root"
|
2024-11-30 00:58:04 +01:00
|
|
|
v-bind="delegatedProps"
|
|
|
|
|
:class="
|
|
|
|
|
cn(
|
2025-04-10 13:55:56 +02:00
|
|
|
`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,
|
2024-11-30 00:58:04 +01:00
|
|
|
props.class,
|
|
|
|
|
)
|
|
|
|
|
"
|
2025-04-10 13:55:56 +02:00
|
|
|
/>
|
2024-11-30 00:58:04 +01:00
|
|
|
</template>
|