← Back to Components
Alert Dialog
Confirmation overlays that require an explicit outcome.
Interactive Playground
R Code
API Reference
block_alert_dialog()
Accessible confirmation overlay that reports confirm or cancel outcomes.
| Argument | Type | Default | Description |
|---|---|---|---|
| id | character | required | Outcome input id. |
| title | character | tag | required | Accessible title. |
| description | character | tag | NULL | Supporting description. |
| confirm_label | character | "Continue" | Confirmation label. |
| cancel_label | character | "Cancel" | Cancellation label. |
| trigger | character | NULL | Optional opener label. |
| confirm_variant | "default" | "destructive" | "default" | Confirmation styling. |
| size | character | "default" | Width preset. |
update_block_alert_dialog()
Updates and opens or closes an alert dialog from the server.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | current | Active session. |
| input_id | character | required | Alert dialog id. |
| open | logical | missing | Optional open state. |