size | "s" | "m" | "l" | "s" | The size of the modal. |
offCanvas | boolean | - | Whether the modal should be displayed as an off canvas. |
offCanvasOrientation | "left" | "right" | "right" | Whether the off canvas should be displayed on the right or left side of the
screen. |
controller | OverlayController | - | An overlay controller to control the modal state. |
slot | string | - | Accepts "actionConfirm" to use the modal as a confirmation modal for an
action. |
isDismissable | boolean | - | Whether the modal can be closed by clicking outside of it. |
showCloseButton | boolean | - | Whether the close button should be visible |
children | ReactNode | - | |
wrapWith | ReactElement<unknown, string | JSXElementConstructor<any>> | - | |
ref | Ref<HTMLSpanElement> | - | Allows getting a ref to the component instance.
Once the component unmounts, React will set `ref.current` to `null`
(or call the ref with `null` if you passed a callback ref).
@see React Docs |
key | Key | - | |
className | string | - | The elements class name. |
isOpen | boolean | - | |
isDefaultOpen | boolean | - | |