dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
13 lines (12 loc) • 583 B
TypeScript
import { InputHTMLAttributes } from 'react';
import { IField, IFieldProps } from './field';
type IWatcherBaseProps = Pick<IField, 'style' | 'label' | 'customProperties'>;
type IWatcherHtmlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'defaultValue' | 'disabled' | 'type'>;
export interface IMakeWatcher extends IWatcherBaseProps, IWatcherHtmlProps {
elementType: 'watcher';
watchList: Array<string>;
}
export interface IMakeWatcherProps extends IFieldProps {
element: Omit<IMakeWatcher, 'elementType'>;
}
export {};