p-alert-2

PreviousNext

Alert with icon

Docs
cossblock

Preview

Loading preview…
registry/default/particles/p-alert-2.tsx
import { InfoIcon } from "lucide-react";

import {
  Alert,
  AlertDescription,
  AlertTitle,
} from "@/registry/default/ui/alert";

export default function Particle() {
  return (
    <Alert>
      <InfoIcon />
      <AlertTitle>Heads up!</AlertTitle>
      <AlertDescription>
        Describe what can be done about it here.
      </AlertDescription>
    </Alert>
  );
}

Installation

npx shadcn@latest add @coss/p-alert-2

Usage

import { PAlert2 } from "@/components/p-alert-2"
<PAlert2 />