import { defineComponent, type PropType } from 'vue'; import { DefaultComponentProps } from '../_default'; import InputWrapper from './_input'; const component = defineComponent({ props: { ...DefaultComponentProps, value: String, modelValue: String, placeholder: String, label: String, invalidText: String, helperText: String, disabled: Boolean, minHeight: Number, additionalHelperSlot: Object as PropType, }, emits: { input: (_value: string) => { return true; }, 'update:modelValue': (_value: string) => { return true; }, }, setup(props, ctx) { function handleInput(event: Event) { const el = event.target as HTMLInputElement; if (!el) { return; } ctx.emit('input', el.value); ctx.emit('update:modelValue', el.value); } return () => (