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.
Prop | Type | Default | Description |
---|---|---|---|
defaultOpen | boolean | false | The open state of the modal when it is initially rendered. |
children | node | - | The content of the component. |
ModalTrigger
The button that opens the modal.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalContent
Contains content to be rendered in the open modal.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalHeader
Contains header to be rendered in the open modal.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalTitle
An accessible title to be announced when the modal is opened.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalDescription
An optional accessible description to be announced when the modal is opened.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalFooter
Contains footer to be rendered in the open modal.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
ModalClose
The button that closes the modal.
Prop | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |