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.