🏷️ Updated Input component interface file

This commit is contained in:
Paul Valerie GOMA 2025-07-22 09:54:03 +02:00
parent e44e17fe7d
commit ca4c258ea1

View File

@ -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<Omit<PasswordProps, 'modelValue'>>,
Partial<IInputText> {
Partial<Omit<IInputText, 'wrapperClass' | 'labelClass'>> {
/**
* Hint(s) displayed to guide the user when entering a password.
* Can be a single string or an array of strings.