Modal

Modal displays content related to a minor job within a page’s main job that demands complete attention. It interrupts a flow and blocks interactions outside the overlay.

Optional props

onClose

Callback fired when the backdrop or close button is clicked.

type
((event: Event) => void)
default
null

open

Whether the modal is open or not

type
boolean
default
false

portal

Whether to render the modal inside a portal or not

type
boolean
default
true

size

Modal size

type
small
medium
large
default
medium