Skip to Content

Modal

This component is currently a Work In Progress (WIP).

The Modal component displays content in a layer above the app.

Playground

Props

Examples

Usage

Props

PropTypeDefaultDescription
childrenReactNode-The modal content (Header, Body, Footer).
classNamestring-Additional CSS classes.
entityIdstring-ID of the entity being edited (for URL state).
idstring-Unique ID for URL state management.
onToggle(open) => void-Callback to change open state.
openboolean-Controls visibility.
preventExitbooleanfalsePrevents closing browser tab if true.

Modal.Header

PropTypeDefaultDescription
onClose() => void-Callback for close button.
titleReactNode-The title of the modal.

Modal.Body, Modal.Footer

PropTypeDefaultDescription
childrenReactNode-Content.
Last updated on