Alert

PreviousNext

Displays a callout for user attention.

Docs
bunduicomponent

Preview

Loading preview…
examples/components/alert/danger/page.tsx
import { XIcon } from "lucide-react";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";

export default function AlertDanger() {
  return (
    <Alert variant="destructive" className="*:text-destructive!">
      <XIcon />
      <AlertTitle>Unable to process your payment.</AlertTitle>
      <AlertDescription>Please verify your billing information and try again.</AlertDescription>
    </Alert>
  );
}

Installation

npx shadcn@latest add @bundui/alert-danger

Usage

import { AlertDanger } from "@/components/alert-danger"
<AlertDanger />