🏷️ FileUpload component interface file added

This commit is contained in:
Paul Valerie GOMA 2025-07-24 03:32:49 +02:00
parent 9da0952de8
commit db5d9b0dae

View File

@ -0,0 +1,46 @@
/**
* Interface representing the properties of a FileUpload component.
*/
export default interface IFile {
/**
* Optional unique identifier for the file input.
*/
id?: string;
/**
* Optional label displayed above or beside the file input.
*/
label?: string;
/**
* Specifies the types of files that the input accepts.
* Can be a single MIME type string or an array of MIME types.
* Example: "image/*" or ["image/png", "application/pdf"]
*/
accept?: string | string[];
/**
* Optional helper text displayed below the input to guide the user.
*/
hint?: string;
/**
* Optional error message displayed when validation fails.
*/
error?: string;
/**
* Optional message displayed when the input is valid.
*/
validMessage?: string;
/**
* If true, disables the file input.
*/
disabled?: boolean;
/**
* The current value of the file input, typically a file path or name.
*/
modelValue?: string;
}