Modal

A window overlaid on either the primary window or another modal window, rendering the content underneath inert.

code
Expend code

Modal

Contains all the parts of a modal.

PropTypeDefaultDescription
defaultOpenbooleanfalseThe open state of the modal when it is initially rendered.
childrennode-The content of the component.

ModalTrigger

The button that opens the modal.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalContent

Contains content to be rendered in the open modal.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalHeader

Contains header to be rendered in the open modal.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalTitle

An accessible title to be announced when the modal is opened.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalDescription

An optional accessible description to be announced when the modal is opened.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalFooter

Contains footer to be rendered in the open modal.

PropTypeDefaultDescription
childrennode-The content of the component.

ModalClose

The button that closes the modal.

PropTypeDefaultDescription
childrennode-The content of the component.