Line data Source code
1 12 : <script setup lang="ts">
2 : import type { HTMLAttributes } from 'vue'
3 :
4 : import { cn } from '@comfyorg/tailwind-utils'
5 :
6 : import type { FieldVariants } from './field.variants'
7 : import { fieldVariants } from './field.variants'
8 :
9 : const { class: className, orientation } = defineProps<{
10 : class?: HTMLAttributes['class']
11 : orientation?: FieldVariants['orientation']
12 : }>()
13 : </script>
14 :
15 : <template>
16 14 : <div
17 : role="group"
18 : data-slot="field"
19 : :data-orientation="orientation"
20 : :class="cn(fieldVariants({ orientation }), className)"
21 : >
22 : <slot />
23 : </div>
24 : </template>
|