Overview
Forms & inputs
Search for a command to run or a page to navigate to.
AlertDialog is a modal dialog that interrupts the user with important content and expects a response.
import { AlertDialog } from "@strongtie/design-system/alert-dialog"Not installed yet? Add the package to your app:
This module exports the following components:
AlertDialogAlertDialogPortalAlertDialogOverlayAlertDialogTriggerAlertDialogContentAlertDialogHeaderAlertDialogFooterAlertDialogTitleAlertDialogDescriptionAlertDialogActionAlertDialogCancelAll components accept standard HTML attributes and React props.
Don't use an alert dialog for ordinary modal content — a form, a detail panel, or anything the user may dismiss without answering belongs in a Dialog. Alert dialogs trap focus around a mandatory choice and have no dismiss affordance beyond their own actions, so reserve them for destructive or irreversible confirmations where the user must explicitly choose.