Line data Source code
1 16 : <script setup lang="ts">
2 : import type { PrimitiveProps } from 'reka-ui'
3 : import { Primitive, useForwardProps } from 'reka-ui'
4 : import type { HTMLAttributes } from 'vue'
5 :
6 : import { cn } from '@comfyorg/tailwind-utils'
7 :
8 : interface Props extends PrimitiveProps {
9 : class?: HTMLAttributes['class']
10 : }
11 :
12 2023 : const { as = 'div', class: className = '', ...restProps } = defineProps<Props>()
13 2023 : const forwardedProps = useForwardProps(restProps)
14 : </script>
15 :
16 : <template>
17 : <Primitive
18 : v-bind="forwardedProps"
19 : :as
20 : :class="
21 : cn('inline-flex items-stretch overflow-hidden rounded-md', className)
22 : "
23 : >
24 : <slot />
25 : </Primitive>
26 : </template>
|