dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
15 lines (14 loc) • 622 B
TypeScript
import { HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
import { IField, IFieldProps } from './field';
type IInputHtmlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'placeholder' | 'defaultValue' | 'disabled' | 'type' | 'min' | 'max'>;
export interface IMakeInput extends IField, IInputHtmlProps {
elementType: 'input';
placeholder?: string;
min?: string | number;
max?: string | number;
type?: HTMLInputTypeAttribute;
}
export interface IMakeInputProps extends IFieldProps {
element: Omit<IMakeInput, 'elementType'>;
}
export {};