← Back to Components

Dialog

Portal-rendered modal views containing forms, alerts, or details.

Interactive Playground

R Code

API Reference

block_dialog()

Fully accessible portal-rendered modal dialog screens containing interactive elements, focus trapping, and backdrop overlay clicks.

ArgumentTypeDefaultDescription
input_idcharacterrequiredUnique ID for dialog open/close state.
titlecharacterNULLHeader title text.
descriptioncharacterNULLSubheader description text.
triggercharacterNULLButton label to open the dialog.
footershiny.tagNULLAction buttons at the bottom.
size'default' | 'sm' | 'lg''default'Width sizing preset.
hide_titlelogicalFALSEVisually hide header.
classcharacterNULLCustom wrapper styles.
...shiny.tag | tagListrequiredDialog body content.

update_block_dialog()

Forces dialog window close or open from Shiny handlers.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredActive Shiny session.
input_idcharacterrequiredDialog input identifier.
openlogicalNULLSet open/close dialog state (TRUE/FALSE).