ComposantsPrimitives
Alert Dialog
Une modale qui demande une confirmation avant une action destructive.
BetaWhoa UI est en bêta : certains éléments peuvent encore changer. Un bug ? Écrivez-moi à hello@ugolin-olle.com.
alert-dialog.tsx
Animation
Le fond s'estompe en 180 ms ; la modale reste centrée, part de scale(0.96) et dure 240 ms (180 ms en sortie).
Les jetons et les règles communes sont décrits sur la page Motion.
Installation
Le composant fait partie des primitives shadcn/ui sur Base UI.
bunx --bun shadcn@latest add alert-dialogOu depuis le paquet npm :
import { AlertDialog } from '@whoa-studio/ui/alert-dialog';Exports : AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel.