@nish1896/rhf-mui-components
Version:
A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms
13 lines (12 loc) • 319 B
TypeScript
export type FileInputProps = {
accept?: string;
multiple?: boolean;
maxSize?: number;
disabled?: boolean;
maxFiles?: number;
};
export declare enum FileUploadError {
sizeExceeded = "FILE_SIZE_EXCEEDED",
invalidExtension = "FILE_TYPE_NOT_ALLOWED",
limitExceeded = "FILE_LIMIT_EXCEEDED"
}