Warning Alert
shadcn-ui-blocks/alert-04FreeComponent
A warning alert component
Install it
npx shadcn@latest add https://shadcnui-blocks.com/r/alert-04.jsonSource
1import { AlertTriangleIcon } from "lucide-react";2import { Alert, AlertDescription, AlertTitle } from "@/registry/ui/alert";34export default function AlertWarningDemo() {5 return (6 <Alert className="border-amber-500/50 text-amber-500 dark:border-amber-500 [&>svg]:text-amber-500">7 <AlertTriangleIcon className="size-4" />8 <AlertTitle>Proceed with Caution</AlertTitle>9 <AlertDescription className="text-amber-500">10 This action might have unintended consequences.11 </AlertDescription>12 </Alert>13 );14}
What it pulls in
npm packages
Other registry items
Files it writes
More from Shadcn UI Blocks
All 542 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Default Accordionaccordion-01 | Shadcn UI Blocks | Components | Free | no deps | |
| Outline Accordionaccordion-02 | Shadcn UI Blocks | Components | Free | no deps | |
| Box Accordionaccordion-03 | Shadcn UI Blocks | Components | Free | no deps | |
| Contained Accordionaccordion-04 | Shadcn UI Blocks | Components | Free | no deps | |
| Box Contained Accordionaccordion-05 | Shadcn UI Blocks | Components | Free | no deps | |
| Tabs Accordionaccordion-06 | Shadcn UI Blocks | Components | Free | no deps | |
| Highlight Active Item Accordionaccordion-07 | Shadcn UI Blocks | Components | Free | no deps | |
| Multiple Expanded at a time Accordionaccordion-08 | Shadcn UI Blocks | Components | Free | no deps |
