Delete Dialogue
Cinematic confirmation dialogs built with physics-based GSAP animations. Standardizing the "Confirm Delete" experience with high-fidelity micro-interactions.
Universal Integration
Each variant manages its own animation timeline. To sync with your backend, set setIsDeleting(true) as your loading trigger.
const handleDelete = async () => {
setIsDeleting(true); // Triggers cinematic sequence
try {
await api.delete(id); // Performs actual deletion
} catch (error) {
setIsDeleting(false); // Resets state on failure
}
};The Original Bin
The classic physics-based trash disposal animation. Features a rotating lid, gravitational pull-in, and a bounce-closed completion state.
Installation
Or use shadcn: npx shadcn@latest add https://aftershade.pages.dev/registry/delete-bin.json
Source Code
Ghost Void
A high-fluidity spectral fade. Uses GSAP Blur and Scale filters to create a hauntingly smooth data disintegration effect.
Installation
Or use shadcn: npx shadcn@latest add https://aftershade.pages.dev/registry/delete-ghost.json
Source Code
Rocket Yeet
A high-energy orbital launch sequence. Features randomized shaking dynamics followed by a high-velocity `power4.in` exit.
Installation
Or use shadcn: npx shadcn@latest add https://aftershade.pages.dev/registry/delete-rocket.json