Join our Discord Community
Alert/Warning

React Alert - Warning with Everything

A complete warning alert with icon, title, description, and action buttons for maximum cautionary clarity and informed decision making

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


This is the full warning experience with maximum visibility. TriangleAlert icon from Lucide React, clear title, risk explanation, and action buttons working together in shadcn/ui's amber warning styling (border-warning/80, bg-warning/5, text-warning). Built with flex-row items-start gap-3 for icon alignment and translate-y-0.5 for optical centering, this pattern delivers every element for prominent risk communication. Perfect for destructive operations requiring full informed consent, irreversible actions with explained consequences, critical quota warnings with upgrade paths, or significant cautions where maximum visibility, complete context, and explicit decision are essential.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/alert-warning-5.json
npx shadcn@latest add https://www.shadcn.io/registry/alert-warning-5.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/alert-warning-5.json
bunx shadcn@latest add https://www.shadcn.io/registry/alert-warning-5.json

Questions you might have