dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
11 lines (10 loc) • 469 B
TypeScript
import { InputHTMLAttributes } from 'react';
import { IField, IFieldProps } from './field';
type IToggleHtmlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'checked' | 'defaultValue' | 'disabled' | 'type'>;
export interface IMakeToggle extends IField, IToggleHtmlProps {
elementType: 'toggle';
}
export interface IMakeToggleProps extends IFieldProps {
element: Omit<IMakeToggle, 'elementType'>;
}
export {};