Modal
The Modal component displays a popup window containing a title and body text, which supports basic formatting. It includes a separate "Open" button with customizable text, shown on the page. You can also choose to have the modal open by default.
Fields
-
defaultOpen(optional) - Checkbox to define whether the modal is open by default. -
openButtonText(required) - The text displayed on the button that triggers the modal. -
modalTitle(required) - The title displayed at the top of the modal. -
modalText(optional) - Rich text content shown inside the modal body.
Behavior
-
The component renders a button using the
openButtonTextvalue. -
When clicked, the modal opens and displays:
-
The
modalTitleas a heading. -
The
modalTextas body content, if provided.
-
-
If
defaultOpenis enabled, the modal appears on page load.