dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
22 lines (21 loc) • 725 B
TypeScript
import { ChangeEvent, CSSProperties, InputHTMLAttributes } from 'react';
type IInputUploadHtmlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'style' | 'name' | 'disabled' | 'value' | 'onChange' | 'type'>;
export interface IFileResult {
name: string;
size: number;
data: string;
}
export interface IInputUpload extends IInputUploadHtmlProps {
id?: string;
value?: string | number | readonly string[];
onChange: (event: ChangeEvent<HTMLInputElement> | IFileResult | FileList | null) => void;
accept?: string;
label?: string;
helpText?: string;
style?: CSSProperties;
readAsArrayBuffer?: boolean;
name: string;
disabled?: boolean;
read?: boolean;
}
export {};