Getting Started
Foundations
Components
Search for a command to run...
Alert dialogs are used for critical interactions that demand immediate attention and a decision from the user before they can proceed. Unlike regular dialogs, alert dialogs are typically used for confirmations of destructive actions (like deletions), important warnings, or critical errors that require acknowledgment. They block all interaction with the underlying page until the user responds.
Built on top of Radix UI's AlertDialog primitive with full keyboard navigation, focus trapping, and accessibility support including proper ARIA attributes and roles that announce the alert to screen readers.
import { AlertDialog } from "@strongtie/design-system/alert-dialog"This module exports the following components:
AlertDialogAlertDialogPortalAlertDialogOverlayAlertDialogTriggerAlertDialogContentAlertDialogHeaderAlertDialogFooterAlertDialogTitleAlertDialogDescriptionAlertDialogActionAlertDialogCancelAll components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
alert-dialogalert-dialog-contentalert-dialog-descriptionalert-dialog-footeralert-dialog-headeralert-dialog-overlayalert-dialog-portalalert-dialog-titlealert-dialog-triggerOther CSS classes used by this component:
alert-dialog-contentalert-dialog-descriptionalert-dialog-footeralert-dialog-headeralert-dialog-overlayalert-dialog-titleoutlineThis component inherits accessibility features from Radix UI, including: