mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-08 05:43:18 +01:00
20 lines
601 B
Vue
20 lines
601 B
Vue
<script setup lang="ts">
|
|
import type { ComboboxAnchorProps } from 'reka-ui';
|
|
import type { HTMLAttributes } from 'vue';
|
|
import { reactiveOmit } from '@vueuse/core';
|
|
import { ComboboxAnchor, useForwardProps } from 'reka-ui';
|
|
import { cn } from '../utils/cn';
|
|
|
|
const props = defineProps<ComboboxAnchorProps & { class?: HTMLAttributes['class'] }>();
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class');
|
|
|
|
const forwarded = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<ComboboxAnchor v-bind="forwarded" :class="cn('w-full', props.class)">
|
|
<slot />
|
|
</ComboboxAnchor>
|
|
</template>
|