UNPKG

@vchatcloud/react-ui-kit

Version:

VChatCloud UI Kit for react integration

18 lines (17 loc) 610 B
import { HTMLAttributes, ReactNode } from 'react'; export interface ModalProps { title?: string; bodyText?: string; children?: ReactNode; useOk?: boolean; useCancel?: boolean; okText?: string; cancelText?: string; okNode?: ReactNode; cancelNode?: ReactNode; onOk?: () => void; onCancel?: () => void; portal?: string; } declare const Modal: ({ title, bodyText, children, useOk, useCancel, okText, cancelText, okNode, cancelNode, onOk, onCancel, portal, ...rest }: ModalProps & HTMLAttributes<HTMLDivElement>) => import('react').ReactPortal; export default Modal;