From 2bf927615796e984921d84d996091e927db84109 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Tue, 22 Jul 2025 00:41:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20=20Added=20Input=20c?= =?UTF-8?q?omponent=20interface=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/input/IVInput.type.ts | 251 +++++++++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 src/components/input/IVInput.type.ts diff --git a/src/components/input/IVInput.type.ts b/src/components/input/IVInput.type.ts new file mode 100644 index 0000000..cbe45f4 --- /dev/null +++ b/src/components/input/IVInput.type.ts @@ -0,0 +1,251 @@ +import type { HintedString, Nullable} from '@primevue/core'; +import type { HTMLAttributes, InputHTMLAttributes } from 'vue'; + +/** + * Interface representing the props for the InputText component. + */ +export interface IInputText { + /** + * The unique identifier for the input element. + */ + id?: string; + + /** + * The ID used to associate the input with a description element for accessibility. + */ + descriptionId?: string; + + /** + * Optional hint text displayed below the input. + */ + hint?: string; + + /** + * Indicates whether the input is in an invalid state. + */ + isInvalid?: boolean; + + /** + * Indicates whether the input is in a valid state. + */ + isValid?: boolean; + + /** + * If true, renders a