Skip to content
kapable

AlertDialog

Actions · 1 export · v0.1.0 · showcase

Interruptive native decision dialog with explicit context, cancel-first focus, and app-owned actions.

Browse 72 component families

AlertDialog requires showModal() for truthful modal isolation, initial focus, cancellation, and focus return. This server-rendered page does not imitate client behavior. Open the live playground.

Usage

AlertDialog usage
<AlertDialog id="delete-deploy" title="Delete deploy?" description="This cannot be undone." actions={<DeleteDeployAction />} />

API

AlertDialog API

AlertDialogProps

AlertDialog props
proptypenotes
idstringDocument-unique id — openers target it via `onOpenDialog(id)`.
titlestringDialog title; renders as the labelling heading.
descriptionstringExplicit decision context, wired to `aria-describedby`.
children?RemixNodeAdditional detail. App forms belong here, not around the dialog.
actions?RemixNodeApp-owned action controls or forms, rendered after Cancel.
cancelLabel?stringCancel button text (default 'Cancel').
width?'sm' | 'md'Dialog width: 'sm' 360px · 'md' 480px (default).
mix?MixInput

More in Actions

More in Actions