Launch sale — 60% off Pro
Contact
AlertWarning

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

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.

Pattern created by @haydenbleasel

Installation

Questions you might have