* feat: add command palette * fix: add command empty --------- Co-authored-by: zernonia <59365435+zernonia@users.noreply.github.com>
22 lines
544 B
Vue
22 lines
544 B
Vue
<script setup lang="ts">
|
|
import type { ComboboxGroupProps } from 'radix-vue'
|
|
import { ComboboxGroup, ComboboxLabel } from 'radix-vue'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<ComboboxGroupProps & {
|
|
heading?: string
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<ComboboxGroup
|
|
v-bind="props"
|
|
:class="cn('p-1 text-foreground', $attrs.class ?? '')"
|
|
>
|
|
<ComboboxLabel v-if="heading" class="px-2 py-1.5 text-xs font-medium text-muted-foreground">
|
|
{{ heading }}
|
|
</ComboboxLabel>
|
|
<slot />
|
|
</ComboboxGroup>
|
|
</template>
|