alert-destructive-demo

PreviousNext
Docs
kanpekiexample

Preview

Loading preview…
registry/examples/alert/alert-destructive-demo.tsx
import { AlertCircleIcon } from "lucide-react";
import { Alert } from "~/registry/ui/alert";

export function AlertDestructiveDemo() {
  return (
    <Alert.Root variant="destructive">
      <AlertCircleIcon />
      <Alert.Title>Something went wrong!</Alert.Title>
      <Alert.Description>
        Your session has expired. Please log in again.
      </Alert.Description>
    </Alert.Root>
  );
}

Installation

npx shadcn@latest add @kanpeki/alert-destructive-demo

Usage

import { AlertDestructiveDemo } from "@/components/alert-destructive-demo"
<AlertDestructiveDemo />