{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alerts",
  "title": "Alert stack",
  "description": "A vertical stack of informational, success, and destructive alerts with icons.",
  "registryDependencies": [
    "alert",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/alerts.tsx",
      "content": "import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert'\nimport { Icon } from '@/components/ui/icon'\n\n/** A vertical stack of informational, success, and destructive alerts with icons. */\nexport function Alerts() {\n  return (\n    <div className=\"flex max-w-card-xl flex-col gap-4\">\n      <Alert>\n        <Icon name=\"info\" />\n        <AlertTitle>Heads up</AlertTitle>\n        <AlertDescription>Your trial ends in 3 days — upgrade to keep your projects.</AlertDescription>\n      </Alert>\n      <Alert>\n        <Icon name=\"check_circle\" />\n        <AlertTitle>Changes saved</AlertTitle>\n        <AlertDescription>Your profile has been updated successfully.</AlertDescription>\n      </Alert>\n      <Alert variant=\"destructive\">\n        <Icon name=\"warning\" />\n        <AlertTitle>Payment failed</AlertTitle>\n        <AlertDescription>We couldn’t process your card. Update your billing details.</AlertDescription>\n      </Alert>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/alerts.tsx"
    }
  ],
  "meta": {
    "intent": [
      "feedback"
    ],
    "use_when": "You need to surface inline status messages of varying severity (info, success, destructive) within a page.",
    "not_for": "the message is transient feedback about an action just taken — use a toast, not an inline alert → sonner; the message is site-wide and dismissible rather than local to a page section → announcement-banner; the \"message\" is really an empty view that needs an explanation and a call to action → empty-state"
  },
  "docs": "A vertical stack of informational, success, and destructive alerts with icons. Do: Match severity to consequence: destructive for blocking errors, default for neutral information. Don't: Use destructive styling for emphasis on non-error messages. Use sonner when the message is transient feedback about an action just taken — use a toast, not an inline alert. Use announcement-banner when the message is site-wide and dismissible rather than local to a page section. Use empty-state when the \"message\" is really an empty view that needs an explanation and a call to action.",
  "categories": [
    "feedback"
  ],
  "type": "registry:block"
}