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 Input from '@comfyorg/design-system/input/Input'
7 :
8 : const { class: className } = defineProps<{
9 : class?: HTMLAttributes['class']
10 : }>()
11 :
12 21 : const modelValue = defineModel<string | number>()
13 : </script>
14 :
15 : <template>
16 : <Input
17 : v-model="modelValue"
18 : data-slot="input-group-control"
19 : :class="
20 : cn(
21 : 'flex-1 rounded-none bg-transparent text-inherit focus-visible:ring-0 aria-invalid:ring-0',
22 : className
23 : )
24 : "
25 : />
26 : </template>
|