Files
BRETT/app/components/ui/command/CommandSeparator.vue
T
2026-10-03 20:07:49 +02:00

22 lines
558 B
Vue

<script setup lang="ts">
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'
const props = defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>()
const delegatedProps = reactiveOmit(props, 'class')
</script>
<template>
<Separator
data-slot="command-separator"
v-bind="delegatedProps"
:class="cn('bg-border/50 my-1 h-px', props.class)"
>
<slot />
</Separator>
</template>