diff --git a/src/components/file/IVFileUpload.type.ts b/src/components/file/IVFileUpload.type.ts new file mode 100644 index 0000000..c38bc11 --- /dev/null +++ b/src/components/file/IVFileUpload.type.ts @@ -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; +}