Alert Dialog
Confirmation for actions that cannot be undone or that leave the company: send, approve, delete.
Installation
Once per app, set up Aedis UI. The CLI verifies the signed release before writing anything and pins every dependency:
npx @aedis/cli@0.1.0 initImport the theme once in your global CSS, after Tailwind:
app/globals.css
@import "tailwindcss";@import "./styles/aedis-theme.css";Then add the component:
npx @aedis/cli@0.1.0 add alert-dialog# pnpm dlx @aedis/cli@0.1.0 add alert-dialog · yarn dlx @aedis/cli@0.1.0 add alert-dialog · bunx @aedis/cli@0.1.0 add alert-dialogProps
| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | @base-ui/react AlertDialog props | — | Every prop of the underlying Base UI part, including render for composition. |
Security
- Focus starts on Cancel, so pressing Enter right after opening never confirms.
- Escape and clicking outside do not confirm; only the action button does.