mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 19:06:35 +00:00
5b6a58fba0
- new vue app for serving live chat widget, created subdirectories inside frontend dir `main` and `widget` - vite changes for both main app and widget app. - new backend live chat channel - apis for live chat widget
36 lines
991 B
Vue
36 lines
991 B
Vue
<script setup>
|
|
import { computed } from 'vue'
|
|
import { ComboboxGroup, ComboboxLabel } from 'radix-vue'
|
|
import { cn } from '../../../lib/utils'
|
|
|
|
const props = defineProps({
|
|
asChild: { type: Boolean, required: false },
|
|
as: { type: null, required: false },
|
|
class: { type: null, required: false },
|
|
heading: { type: String, required: false }
|
|
})
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props
|
|
|
|
return delegated
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<ComboboxGroup
|
|
v-bind="delegatedProps"
|
|
:class="
|
|
cn(
|
|
'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
|
|
props.class
|
|
)
|
|
"
|
|
>
|
|
<ComboboxLabel v-if="heading" class="px-2 py-1.5 text-xs font-medium text-muted-foreground">
|
|
{{ heading }}
|
|
</ComboboxLabel>
|
|
<slot />
|
|
</ComboboxGroup>
|
|
</template>
|