Alert

PreviousNext

Displays a callout for user attention.

Docs
bunduicomponent

Preview

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

export default function AlertWithIcon() {
  return (
    <Alert>
      <CheckCircle2Icon />
      <AlertTitle>Success! Your changes have been saved</AlertTitle>
    </Alert>
  );
}

Installation

npx shadcn@latest add @bundui/alert-with-icon

Usage

import { AlertWithIcon } from "@/components/alert-with-icon"
<AlertWithIcon />