Dialog
Live preview and documentation for the Dialog component.
Preview
componentPreview.loading
About
Centered modal card: icon bubble, title, body, an optional close control, and an actions footer. Present it with showKasyDialog or showKasyBlurDialog (blurred backdrop); prefer KasyButton inside actions.
leadingIcon/iconTone: icon in the top bubble and its tone (info,success,warning,danger,neutral). OmitleadingIconfor a compact header (title + close button only).title/titleCentered: the dialog's title; centered when there's noleadingIcon.closeAboveTitle: puts the close button on its own line above the title (only when there's noleadingIconand notitleCentered).message/body:messagerenders a simple subtitle;bodyreplaces it with a custom widget (e.g. a form) and takes priority.footer: replaces the entire default footer with something custom.confirmLabel/onConfirm: single button on the right (used whenfooterandactionsare both empty).actions/actionsAxis: list of buttons that replacesconfirmLabel;Axis.vertical(default, stacked, primary action on top) orAxis.horizontal(side by side, equal flex).showCloseButton/onClose/closeButtonStyle: shows the "X" (standard, 24px, default; orfilledNeutral, a larger circle, adjustable viacloseFilledButtonExtent/closeFilledIconGlyphSize);onCloseoverrides the defaultNavigator.pop.showKasyConfirmDialog: ready-made shortcut for a confirm/cancel dialog (2 buttons, supportsdestructivefor a danger variant andonConfirmAsyncwith a loading state).KasyDialogScrollableBody: wraps long content with a max height and internal scroll, with edge fades that only appear when the content actually scrolls.
Last updated on 08/23/2026

