Dialogs and help · ui · 5K

Alert dialog

System 7 alert: modal frame, 32×32 icon top-left, message beside it, buttons bottom-right with the default button's thick ring.

Put an icon from @s7ui/alert-icons in AlertDialogMedia. AlertDialogAction is the default button; place it last.

Install

pnpm dlx shadcn@latest add @s7ui/alert-dialog

Example

This example also uses @s7ui/alert-icons @s7ui/button.

Info

Files:
components/ui/alert-dialog.tsx
Uses:
@s7ui/theme, @s7ui/button
Packages:
radix-ui