@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
20 lines (19 loc) • 726 B
TypeScript
import React from 'react';
export interface ModalProps {
/** Whether the modal should be visible or not */
open: boolean;
/** Callback fired when the component requests to be closed */
onClose: () => void;
/** The title to add to the modal */
title?: string | React.ReactElement;
/** Whether to render a close button or not */
showCloseButton?: boolean;
/** The id of the HTML node that contains the text of the modal */
'aria-describedby'?: string;
}
/**
* A dialog variation that helps with grabbing the user's attention by blurring the background and
* presenting an element that requires action from the user
*/
declare const Modal: React.FC<ModalProps>;
export default Modal;