Dialog
The Dialog component presents content above the app, supporting focus trapping, scroll locking, and multiple presentation styles (modal, confirmation, bottom sheet).
Examples
(5)Properties
(19)Playground
Basic Modal
Call
openDialog with variant: 'modal' to show a titled dialog and wire action buttons to closeDialog when the user makes a choice.Bottom Sheet
Switch the dialog
variant to 'bottomsheet' to get swipe-to-dismiss behavior and retain full control with closeDialog handlers.Confirmation
Pair
variant: 'modal' with a destructive button (color="error") to confirm irreversible actions before calling your business logic.Form Dialog
Embed inputs in the dialog
content, collect values via controlled callbacks, and validate before resolving the promise or calling closeDialog.Title customization
titleProps accepts any <Text> props (ff, weight, tracking, uppercase, size, color, style) and applies them to the dialog header without changing the rest of the chrome. The same prop is also accepted by openDialog({ titleProps }) for imperative dialogs.Scan to open this page on your phonereact-ui-library.com/components/Dialog
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources