WFP logoDesign System

Displays a callout for user attention.

Installation

pnpm dlx shadcn@latest add https://dev.designsystem.wfp.org/r/alert.json

Usage

import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
<Alert>
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>
    You can add components to your app using the cli.
  </AlertDescription>
</Alert>

Examples

Variants

API reference

Alert

Container for the alert message.

PropType
variant"default" | "destructive"

Changelog

  • 6 July 2026: darkened border on "default" variant for better contrast
  • 23 June 2026: lightened alert borders
  • 3 March 2026: updated the svg colour

On this page