{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alert",
  "title": "Alert",
  "description": "Displays an alert message to the user.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/alert/alert.tsx",
      "content": "import { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@vllnt/ui\";\n\nconst alertVariants = cva(\n  \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n  {\n    defaultVariants: {\n      variant: \"default\",\n    },\n    variants: {\n      variant: {\n        default: \"bg-background text-foreground\",\n        destructive:\n          \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n      },\n    },\n  },\n);\n\nconst Alert = ({\n  className,\n  ref,\n  variant,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement> &\n  VariantProps<typeof alertVariants> & {\n    ref?: React.Ref<HTMLDivElement>;\n  }) => (\n  <div\n    className={cn(alertVariants({ variant }), className)}\n    ref={ref}\n    role=\"alert\"\n    {...props}\n  />\n);\nAlert.displayName = \"Alert\";\n\nconst AlertTitle = ({\n  children,\n  className,\n  ref,\n  ...props\n}: React.HTMLAttributes<HTMLHeadingElement> & {\n  ref?: React.Ref<HTMLParagraphElement>;\n}) => (\n  <h5\n    className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n    ref={ref}\n    {...props}\n  >\n    {children}\n  </h5>\n);\nAlertTitle.displayName = \"AlertTitle\";\n\nconst AlertDescription = ({\n  className,\n  ref,\n  ...props\n}: React.HTMLAttributes<HTMLParagraphElement> & {\n  ref?: React.Ref<HTMLParagraphElement>;\n}) => (\n  <div\n    className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n    ref={ref}\n    {...props}\n  />\n);\nAlertDescription.displayName = \"AlertDescription\";\n\nexport { Alert, AlertDescription, AlertTitle, alertVariants };\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable"
}
