@nish1896/rhf-mui-components
Version:
A suite of 20+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.
15 lines • 384 B
TypeScript
//#region src/types/file-uploader.d.ts
type FileInputProps = {
accept?: string;
multiple?: boolean;
maxSize?: number;
disabled?: boolean;
maxFiles?: number;
};
declare enum FileUploadError {
sizeExceeded = "FILE_SIZE_EXCEEDED",
invalidExtension = "FILE_TYPE_NOT_ALLOWED",
limitExceeded = "FILE_LIMIT_EXCEEDED"
}
//#endregion
export { FileInputProps, FileUploadError };