17 lines
551 B
Vue
17 lines
551 B
Vue
<script setup lang="ts">
|
|
import type { ComboboxSeparatorProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { ComboboxSeparator } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<ComboboxSeparatorProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
</script>
|
|
|
|
<template>
|
|
<ComboboxSeparator v-bind="delegatedProps" :class="cn('-mx-1 h-px bg-border', props.class)">
|
|
<slot />
|
|
</ComboboxSeparator>
|
|
</template>
|