Modal


Examples


padding
maxWidth
Learn More
open
bool
Controlled open state of the modal
onClose
function
default: (e) => void
Optional callback that is called on key down 'Escape' and on click outside modal content
children
node
The content of the modal
showCloseButton
bool
Whether or not to show a close button
maxWidth
number
default: 800px
The maximum width of the modal
portalId
string
Controls the target container ID for the rendering React portal