From ca4c258ea13392fb4d204ac0c09983869e8edd6d Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Tue, 22 Jul 2025 09:54:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20Updated=20Input=20co?= =?UTF-8?q?mponent=20interface=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/input/IVInput.type.ts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/components/input/IVInput.type.ts b/src/components/input/IVInput.type.ts index 32bc29c..d026266 100644 --- a/src/components/input/IVInput.type.ts +++ b/src/components/input/IVInput.type.ts @@ -56,7 +56,7 @@ export interface IInputText { labelClass?: string; /** - * The bound value of the input, supporting string, number, or null. + * The bound value of the input, supporting string or null. */ modelValue?: string | null; @@ -69,8 +69,31 @@ export interface IInputText { * If true, the input type is set to "password" to mask the input content. */ isPassword?: boolean; + + /** + * If true, disables the input field. + */ + disabled?: boolean; + + /** + * Placeholder text displayed inside the input when it's empty. + */ + placeholder?: string; + + /** + * Error message(s) displayed when the input is invalid. + * Can be a single string or an array of strings. + */ + errorMessage?: string | string[]; + + /** + * Success message(s) displayed when the input is valid. + * Can be a single string or an array of strings. + */ + validMessage?: string | string[]; } + /** * Defines valid properties in Password component. */ @@ -242,7 +265,7 @@ export interface PasswordProps { */ export default interface IVInput extends Partial>, - Partial { + Partial> { /** * Hint(s) displayed to guide the user when entering a password. * Can be a single string or an array of strings.