<script setup lang="ts">
import type { ComboboxGroupProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import { reactiveOmit } from "@vueuse/core"
import { ComboboxGroup } from "reka-ui"
import { cn } from "@/lib/utils"

export interface ComboboxGroupPrimitiveProps extends ComboboxGroupProps {
  class?: HTMLAttributes["class"]
}

const props = defineProps<ComboboxGroupPrimitiveProps>()

const delegatedProps = reactiveOmit(props, "class")
</script>

<template>
  <ComboboxGroup
    v-bind="delegatedProps"
    :class="cn('p-1 w-full', props.class)"
  >
    <slot />
  </ComboboxGroup>
</template>
