Plinth

Alert

Inline callout for statuses and notices, in five variants.

Install

npx shadcn@latest add https://plinth.dhrumilkherde.com/r/alert.json

Usage

The first SVG child becomes the leading icon automatically.

import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
import { CircleCheck } from "lucide-react";

<Alert variant="success">
  <CircleCheck />
  <AlertTitle>Saved</AlertTitle>
  <AlertDescription>Everything is up to date.</AlertDescription>
</Alert>

Props

PropTypeDefault
variantneutral · info · success · warning · destructiveneutral

Accessibility

  • Renders with role="alert", so newly mounted alerts are announced immediately; for less urgent notices rendered with the page, that's harmless.
  • Status colors use the paired text tokens, keeping contrast in both themes.

On this page