Alert dialog
A pop-up that asks you to confirm before something that cannot be undone.
Add it to your project
Or install the packages yourselfTerminal
npm install @heroui/react
First time with HeroUI? Set it up once.
The code
*/
"use client";
import {AlertDialog, Button} from "@heroui/react";
export default function AlertDialogDemo() {
return (
<AlertDialog>
<Button variant="danger">Delete Project</Button>
<AlertDialog.Backdrop>
<AlertDialog.Container>
<AlertDialog.Dialog className="sm:max-w-[400px]">This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: A default export (HeroUI's docs use named ones).