{
  "$schema": "https://blode.co/ui/schema/registry-item.json",
  "name": "alert",
  "title": "Alert",
  "author": "Matthew Blode",
  "description": "A callout that displays a short, important message to attract attention.",
  "files": [
    {
      "path": "ui/alert.tsx",
      "content": "import { cva } from \"class-variance-authority\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst alertVariants = cva(\n  \"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n  {\n    defaultVariants: {\n      variant: \"default\",\n    },\n    variants: {\n      variant: {\n        default: \"bg-card text-card-foreground\",\n        destructive:\n          \"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current\",\n      },\n    },\n  },\n);\n\nconst Alert = ({\n  className,\n  variant,\n  ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) => (\n  <div\n    className={cn(alertVariants({ variant }), className)}\n    data-slot=\"alert\"\n    role=\"alert\"\n    {...props}\n  />\n);\n\nconst AlertTitle = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n  <div\n    className={cn(\"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\", className)}\n    data-slot=\"alert-title\"\n    {...props}\n  />\n);\n\nconst AlertDescription = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n  <div\n    className={cn(\n      \"col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed\",\n      className,\n    )}\n    data-slot=\"alert-description\"\n    {...props}\n  />\n);\n\nexport { Alert, AlertTitle, AlertDescription };\n",
      "type": "registry:ui",
      "target": ""
    }
  ],
  "type": "registry:ui"
}
