@matthew.ngo/react-form-kit
Version:
Form Kit for React. It consists of a set of components that can be used to create complex forms in a simple and declarative way.
10 lines (9 loc) • 336 B
TypeScript
interface ValidationOptions {
maxSize?: number;
minSize?: number;
allowedTypes?: string[];
}
export declare const validateFile: (file: File, options: ValidationOptions) => string | null;
export declare const formatFileSize: (bytes: number) => string;
export declare const getFileTypeIcon: (file: File) => string;
export {};