{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alert",
  "type": "registry:ui",
  "title": "Alert",
  "description": "Informative and destructive notices",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "agent",
    "ui",
    "react"
  ],
  "docs": "https://agent-ui-27t.pages.dev/docs/alert",
  "files": [
    {
      "path": "packages/react/src/alert.tsx",
      "type": "registry:ui",
      "target": "@ui/alert.tsx",
      "content": "import * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {\n  variant?: \"default\" | \"destructive\" | \"success\";\n}\n\nexport const Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n  ({ variant = \"default\", className, ...props }, ref) => (\n    <div\n      ref={ref}\n      role={variant === \"destructive\" ? \"alert\" : undefined}\n      data-agent-id=\"alert\"\n      data-agent-state={variant}\n      className={cn(\n        \"relative w-full rounded-lg border p-4 text-sm\",\n        variant === \"default\" && \"border-border bg-card text-card-foreground\",\n        variant === \"destructive\" && \"border-destructive/40 bg-destructive/5 text-foreground\",\n        variant === \"success\" && \"border-emerald-600/30 bg-emerald-600/5 text-foreground\",\n        className\n      )}\n      {...props}\n    />\n  )\n);\nAlert.displayName = \"Alert\";\n\nexport const AlertTitle = React.forwardRef<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement>>(\n  ({ className, ...props }, ref) => <h3 ref={ref} className={cn(\"text-balance font-semibold leading-6\", className)} {...props} />\n);\nAlertTitle.displayName = \"AlertTitle\";\n\nexport const AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\n  ({ className, ...props }, ref) => <p ref={ref} className={cn(\"mt-1 text-pretty leading-6 text-muted-foreground\", className)} {...props} />\n);\nAlertDescription.displayName = \"AlertDescription\";\n"
    }
  ]
}