2025-10-20 08:57:51 +02:00
|
|
|
<script setup lang="ts">
|
2025-11-04 13:47:37 +01:00
|
|
|
import type { SeparatorProps } from "reka-ui"
|
|
|
|
|
import type { HTMLAttributes } from "vue"
|
|
|
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
|
|
|
import { Separator } from "reka-ui"
|
|
|
|
|
import { cn } from "@/lib/utils"
|
2025-10-20 08:57:51 +02:00
|
|
|
|
|
|
|
|
const props = withDefaults(defineProps<
|
2025-11-04 13:47:37 +01:00
|
|
|
SeparatorProps & { class?: HTMLAttributes["class"] }
|
2025-10-20 08:57:51 +02:00
|
|
|
>(), {
|
2025-11-04 13:47:37 +01:00
|
|
|
orientation: "horizontal",
|
2025-10-20 08:57:51 +02:00
|
|
|
decorative: true,
|
|
|
|
|
})
|
|
|
|
|
|
2025-11-04 13:47:37 +01:00
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
2025-10-20 08:57:51 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<Separator
|
|
|
|
|
v-bind="delegatedProps"
|
|
|
|
|
:class="
|
|
|
|
|
cn(
|
2026-02-17 10:35:03 +01:00
|
|
|
'shrink-0 bg-border',
|
|
|
|
|
props.orientation === 'horizontal' ? 'h-px w-full' : 'w-px h-full',
|
2025-10-20 08:57:51 +02:00
|
|
|
props.class,
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|