@erudilabs/modal
Version:
An accessible overlay dialog.
17 lines (14 loc) • 464 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren, ReactNode } from 'react';
interface ModalProps extends PropsWithChildren {
testId?: string;
className?: string;
closeIcon?: boolean;
heading?: string;
subheading?: string;
action?: ReactNode;
open: boolean;
onClose?: (value: any) => void;
}
declare const Modal: (props: ModalProps) => react_jsx_runtime.JSX.Element;
export { Modal, ModalProps };