Line data Source code
1 16 : <script setup lang="ts">
2 : import { reactiveOmit } from '@vueuse/core'
3 : import type { TabsRootEmits, TabsRootProps } from 'reka-ui'
4 : import { TabsRoot, useForwardPropsEmits } from 'reka-ui'
5 : import type { HTMLAttributes } from 'vue'
6 :
7 : import { cn } from '@comfyorg/tailwind-utils'
8 :
9 3997 : const props = defineProps<TabsRootProps & { class?: HTMLAttributes['class'] }>()
10 3997 : const emits = defineEmits<TabsRootEmits>()
11 3997 : const forwarded = useForwardPropsEmits(reactiveOmit(props, 'class'), emits)
12 3997 : </script>
13 :
14 : <template>
15 7250 : <TabsRoot
16 : v-bind="forwarded"
17 : data-slot="tabs"
18 : :class="cn('flex flex-col gap-2', props.class)"
19 : >
20 : <slot />
21 : </TabsRoot>
22 : </template>
|