@morganlethuaut/react-modal-component
Version:
A reusable React modal component.
15 lines (12 loc) • 556 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
type MODAL_TT_PROPS = {
show: boolean;
setShow: React.Dispatch<React.SetStateAction<boolean>>;
className?: string;
toFocus?: React.RefObject<HTMLElement | null>;
ariaLabelledby?: string;
ariaDescribedby?: string;
disabledCloseBtn?: boolean;
};
declare function Modal({ show, setShow, className, toFocus, ariaLabelledby, ariaDescribedby, disabledCloseBtn, children }: MODAL_TT_PROPS & React.PropsWithChildren): react_jsx_runtime.JSX.Element;
export { Modal as default };