p-alert-3

PreviousNext

Alert with icon and action buttons

Docs
cossblock

Preview

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

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

export default function Particle() {
  return (
    <Alert>
      <InfoIcon />
      <AlertTitle>Heads up!</AlertTitle>
      <AlertDescription>
        Describe what can be done about it here.
      </AlertDescription>
      <AlertAction>
        <Button size="xs" variant="ghost">
          Dismiss
        </Button>
        <Button size="xs">Ok</Button>
      </AlertAction>
    </Alert>
  );
}

Installation

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

Usage

import { PAlert3 } from "@/components/p-alert-3"
<PAlert3 />