Line data Source code
1 16 : <script setup lang="ts">
2 : import { reactiveOmit } from '@vueuse/core'
3 : import type { TabsContentProps } from 'reka-ui'
4 : import { TabsContent, useForwardProps } from 'reka-ui'
5 : import type { HTMLAttributes } from 'vue'
6 :
7 : import { cn } from '@comfyorg/tailwind-utils'
8 :
9 2355 : const props = defineProps<
10 : TabsContentProps & { class?: HTMLAttributes['class'] }
11 : >()
12 58 : const forwarded = useForwardProps(reactiveOmit(props, 'class'))
13 58 : </script>
14 :
15 : <template>
16 68 : <TabsContent
17 : v-bind="forwarded"
18 : data-slot="tabs-content"
19 : :class="cn('flex-1 outline-none', props.class)"
20 : >
21 : <slot />
22 : </TabsContent>
23 : </template>
|