dynamic-modal
Version:
The dynamic-modal is a solution of creation different modals into project using a json configuration file
14 lines (13 loc) • 440 B
TypeScript
import { CSSProperties, FC } from 'react';
import { IFieldProps } from './field';
export interface IMakeDescription {
elementType: 'text';
text?: string;
containerStyle?: CSSProperties;
textStyle?: CSSProperties;
Icon?: FC;
elements?: Array<Record<'text', string> & Record<'style', CSSProperties>>;
}
export interface IMakeDescriptionProps extends IFieldProps {
element: Omit<IMakeDescription, 'elementType'>;
}