UNPKG

dynamic-modal

Version:

The dynamic-modal is a solution of creation different modals into project using a json configuration file

17 lines (16 loc) 617 B
import { CSSProperties, FC, HTMLAttributes } from 'react'; import { IFieldProps } from './field'; type IDescriptionHtmlProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'>; export interface IMakeDescription extends IDescriptionHtmlProps { elementType: 'text'; customProperties?: Record<string, any>; 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'>; } export {};