Join our Discord Community
Alert/Warning

React Alert - Warning with Title and Action

A warning alert with title and action buttons for cautionary notifications requiring user decision to proceed or cancel

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Warnings with choices respect user agency. This React alert displays amber-themed warning titles with Proceed and Cancel buttons using shadcn/ui's warning styling (border-warning/80, bg-warning/5). Built with Radix UI and Button components colored to match alert theme (bg-warning for proceed action), the pattern presents cautions while offering clear decision paths. Perfect for risky action confirmations, destructive operation warnings, quota limit alerts with upgrade options, or any caution where users need to make informed choice to continue or back out.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have