@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
16 lines (15 loc) • 457 B
TypeScript
import React from 'react';
type UploadProps = {
onChange: (file: File | null) => void;
id?: string;
type?: string;
className?: string;
disabled?: boolean;
hideUploadButton?: boolean;
allowedFileTypes?: string[];
helperText?: string;
value?: never;
};
declare const UploadField: React.ForwardRefExoticComponent<UploadProps & React.RefAttributes<HTMLInputElement>>;
export default UploadField;
export type { UploadProps };