UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

12 lines (11 loc) 543 B
import type { PropsWithChildren } from 'react'; import React from 'react'; export type ModalProps = { /** If true, modal is opened or visible. */ open: boolean; /** Custom class to be applied to the modal root div */ className?: string; /** Callback handler for closing of modal. */ onClose?: (event: React.KeyboardEvent | React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void; }; export declare const Modal: ({ children, className, onClose, open, }: PropsWithChildren<ModalProps>) => React.JSX.Element | null;