dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
18 lines (17 loc) • 464 B
TypeScript
import { CSSProperties } from 'react';
import { IFieldProps } from './field';
export interface IMakeButton {
id?: string;
elementType: 'button';
disabled?: boolean;
className?: string;
style?: CSSProperties;
variant?: string;
text?: string;
type?: 'button' | 'submit' | 'reset';
onClick?: () => void;
color?: string;
}
export interface IMakeButtonProps extends IFieldProps {
element: Omit<IMakeButton, 'elementType'>;
}