Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
"use client";
import { AlertDialog } from "@smartacteam/ambient-web/alert-dialog";
import { Button } from "@smartacteam/ambient-web/button";
export function AlertDialogDemo() {
return (
<AlertDialog.Root>
<AlertDialog.Trigger render={<Button>Show Dialog</Button>} />
<AlertDialog.Content>
<AlertDialog.Header>
<AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
<AlertDialog.Description>
This action cannot be undone. This will permanently delete your
account from our servers.
</AlertDialog.Description>
</AlertDialog.Header>
<AlertDialog.Footer>
<AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
<AlertDialog.Action variant="destructive">Delete</AlertDialog.Action>
</AlertDialog.Footer>
</AlertDialog.Content>
</AlertDialog.Root>
);
}