Back to Modal
Modal

Scrollable content

Long body with Accept/Decline footer actions.

API

PropTypeDefaultDescription
showbooleanControlled visibility.
onClose() => voidCalled when the user dismisses the dialog.
childrenReactNodeDialog body content.
title / descriptionReactNodePanel header text.
modalWidth"sm" | "md" | "lg" | "xl" | "auto" | "full"mdMax width (and height for `full`).
closeablebooleantrueWhether Escape and overlay click dismiss the modal.
showCloseIconbooleantrueShows the header close icon when `onClose` is provided.
scrollablebooleanfalseScrolls long body content inside the panel.
zIndexnumber50Stacking order for the overlay and panel.
hideHeaderbooleanfalseHides the panel header entirely.
bodyNoPaddingbooleanfalseRemoves default padding from the body region.
bodyClassNamestringMerged onto the scrollable body container.
overlayClassNamestringMerged onto the backdrop overlay.
classNamestringMerged onto the panel container.
unmountOnHidebooleantrueRemove from the DOM after the exit animation.
initialFocusRefRefObject<HTMLElement>Element to focus when the dialog opens.
onOpening / onOpened / onClosing / onClosed() => voidAnimation lifecycle callbacks.
footerReactNodeFooter action row via Panel.
leftIcon / rightIcons / leftDetails / rightDetailsPanel slotsRich header configuration (see Panel).
leftContent / rightContentReactNodeCustom header regions flanking the title block.
View full API on Modal

More Modal examples