Conditionally renders a Modal component and uses a transition animation. Only accepts a single child and that child should be a Modal component.
Wraps useToggle and renames return values for convenience.
OptionalinitialValue: TypeOrFunction<boolean>
Modal component shows a pop-up that disables the rest of the application. Click on the background, click close button, or hit escape to close the modal. The open state of the Modal must be held in an ancestral component. Should be used with
<Modal.Header>,<Modal.Body>, and<Modal.Footer>subcomponents for content layout.