Line data Source code
1 16 : <script setup lang="ts">
2 : import type { HTMLAttributes } from 'vue'
3 :
4 : import { cn } from '@comfyorg/tailwind-utils'
5 :
6 : import Button from '@comfyorg/design-system/button/Button'
7 : import type { ButtonVariants } from '@comfyorg/design-system/button.variants'
8 :
9 : import type { InputGroupButtonVariants } from './inputGroup.variants'
10 : import { inputGroupButtonVariants } from './inputGroup.variants'
11 :
12 : const {
13 : variant = 'muted-textonly',
14 : size = 'xs',
15 : class: className
16 : } = defineProps<{
17 : variant?: ButtonVariants['variant']
18 : size?: InputGroupButtonVariants['size']
19 : class?: HTMLAttributes['class']
20 : }>()
21 : </script>
22 :
23 : <template>
24 2355 : <Button
25 : type="button"
26 : data-slot="input-group-button"
27 : :data-size="size"
28 : :variant
29 : size="unset"
30 : :class="cn(inputGroupButtonVariants({ size }), className)"
31 : >
32 : <slot />
33 : </Button>
34 : </template>
|