Props

Themeable

Accepts Box props.

Use the modal key in ThemeProvider to customize the default properties of this component.

childrenReactReactNode

Close the modal when clicking outside of it.

onRequestClose() => void

Called by either clicking on the internal <Scrim/> component or by pressing the Escape key.

openboolean

Determines whether the modal is open or not.

Props passed to the internal <Scrim/> component.