function Modal
Modal(unnamed 0: ModalProps): React.ReactPortal

Renders the dialog in a portal over the page, closed by Escape, the backdrop or its ✕, and locks the page's scroll while it is open. Content that handles Escape itself must call preventDefault on it, or the dialog closes too.

Parameters

unnamed 0: ModalProps

Return Type

React.ReactPortal

Usage

import { Modal } from "src/components/shared/Modal.tsx";