← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| input_id | character | required | Unique ID for dialog open/close state. |
| title | character | NULL | Header title text. |
| description | character | NULL | Subheader description text. |
| trigger | character | NULL | Button label to open the dialog. |
| footer | shiny.tag | NULL | Action buttons at the bottom. |
| size | 'default' | 'sm' | 'lg' | 'default' | Width sizing preset. |
| hide_title | logical | FALSE | Visually hide header. |
| class | character | NULL | Custom wrapper styles. |
| ... | shiny.tag | tagList | required | Dialog body content. |
update_block_dialog()
Forces dialog window close or open from Shiny handlers.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Active Shiny session. |
| input_id | character | required | Dialog input identifier. |
| open | logical | NULL | Set open/close dialog state (TRUE/FALSE). |