Alert dialog

A dialog that asks before something that cannot be undone.

Example

tsx
<AlertDialog>
  <AlertDialogTrigger>Delete store</AlertDialogTrigger>
  <AlertDialogBody size="sm">
    <AlertDialogTitle>Delete this store?</AlertDialogTitle>
    <AlertDialogDescription>
      Its orders and settings go with it.
    </AlertDialogDescription>
    <AlertDialogClose>Keep it</AlertDialogClose>
  </AlertDialogBody>
</AlertDialog>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { AlertDialog, AlertDialogTrigger, AlertDialogBody, AlertDialogTitle, AlertDialogDescription, AlertDialogClose } from "@dash/server";

Props

AlertDialogProps

The same as DialogProps.
Prop
Type
Description
defaultOpenboolean
openboolean
onOpenChange(open: boolean) => void
PreviousDialog
NextDrawer
On this page