UNPKG

dynamic-modal

Version:

The dynamic-modal is a solution of creation different modals into project using a json configuration file

16 lines (15 loc) 607 B
import { InputHTMLAttributes } from 'react'; import { IField, IFieldProps } from './field'; type IUploadHtmlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'defaultValue' | 'disabled' | 'type' | 'accept'>; export interface IMakeUpload extends Omit<IField, 'defaultValue'>, IUploadHtmlProps { elementType: 'upload'; helpText?: string; read: boolean; image?: boolean; accept?: string; readAsArrayBuffer?: boolean; } export interface IMakeUploadProps extends IFieldProps { element: Omit<IMakeUpload, 'elementType'>; } export {};