{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-290",
  "type": "registry:component",
  "title": "Comp 290",
  "description": "Comp 290",
  "files": [
    {
      "path": "registry/ui-basic/comp-290.tsx",
      "content": "import { Button } from \"@/components/ui/button\";\r\nimport { CircleAlertIcon, XIcon } from \"lucide-react\";\r\n\r\nexport default function Component() {\r\n\treturn (\r\n\t\t// To make the notification fixed, add classes like `fixed bottom-4 right-4` to the container element.\r\n\t\t<div className=\"bg-background z-50 max-w-[400px] rounded-md border p-4 shadow-lg\">\r\n\t\t\t<div className=\"flex gap-2\">\r\n\t\t\t\t<div className=\"flex grow gap-3\">\r\n\t\t\t\t\t<CircleAlertIcon\r\n\t\t\t\t\t\tclassName=\"mt-0.5 shrink-0 text-red-500\"\r\n\t\t\t\t\t\tsize={16}\r\n\t\t\t\t\t\taria-hidden=\"true\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div className=\"flex grow flex-col gap-3\">\r\n\t\t\t\t\t\t<div className=\"space-y-1\">\r\n\t\t\t\t\t\t\t<p className=\"text-sm font-medium\">\r\n\t\t\t\t\t\t\t\tWe couldn&lsquo;t complete your request!\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t<p className=\"text-muted-foreground text-sm\">\r\n\t\t\t\t\t\t\t\tIt indicates that an issue has prevented the processing\r\n\t\t\t\t\t\t\t\tof the request.\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div className=\"flex gap-2\">\r\n\t\t\t\t\t\t\t<Button size=\"sm\">Learn more</Button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<Button\r\n\t\t\t\t\t\tvariant=\"ghost\"\r\n\t\t\t\t\t\tclassName=\"group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent\"\r\n\t\t\t\t\t\taria-label=\"Close notification\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<XIcon\r\n\t\t\t\t\t\t\tsize={16}\r\n\t\t\t\t\t\t\tclassName=\"opacity-60 transition-opacity group-hover:opacity-100\"\r\n\t\t\t\t\t\t\taria-hidden=\"true\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</Button>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t);\r\n}\r\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/button.tsx",
      "content": "import * as React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nconst buttonVariants = cva(\r\n\t\"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm text-white hover:text-gray-400 font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\r\n\t{\r\n\t\tvariants: {\r\n\t\t\tvariant: {\r\n\t\t\t\tsimple:\r\n\t\t\t\t\t\"bg-secondary relative z-10 bg-transparent hover:border-secondary hover:bg-secondary/50  border border-transparent dark:text-white text-sm md:text-sm transition font-medium duration-200  rounded-md px-4 py-2  flex items-center justify-center\",\r\n\t\t\t\tdefault: \"bg-primary text-primary-foreground hover:bg-primary/90\",\r\n\t\t\t\tdestructive:\r\n\t\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\r\n\t\t\t\toutline:\r\n\t\t\t\t\t\"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\r\n\t\t\t\tsecondary:\r\n\t\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n\t\t\t\tghost: \"hover:bg-accent hover:text-black hover:stroke-black dark:text-white text-black\",\r\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\r\n\t\t\t},\r\n\t\t\tsize: {\r\n\t\t\t\tdefault: \"h-10 px-4 py-2\",\r\n\t\t\t\tsm: \"h-9 rounded-md px-3\",\r\n\t\t\t\tlg: \"h-11 rounded-md px-8\",\r\n\t\t\t\ticon: \"h-10 w-10\",\r\n\t\t\t},\r\n\t\t},\r\n\t\tdefaultVariants: {\r\n\t\t\tvariant: \"default\",\r\n\t\t\tsize: \"default\",\r\n\t\t},\r\n\t}\r\n);\r\n\r\nexport interface ButtonProps\r\n\textends React.ButtonHTMLAttributes<HTMLButtonElement>,\r\n\t\tVariantProps<typeof buttonVariants> {\r\n\tasChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\r\n\t({ className, variant, size, asChild = false, ...props }, ref) => {\r\n\t\tconst Comp = asChild ? Slot : \"button\";\r\n\t\treturn (\r\n\t\t\t<Comp\r\n\t\t\t\tclassName={cn(buttonVariants({ variant, size, className }))}\r\n\t\t\t\tref={ref}\r\n\t\t\t\t{...props}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\nButton.displayName = \"Button\";\r\n\r\nexport { Button, buttonVariants };\r\n",
      "type": "registry:ui"
    },
    {
      "path": "registry/utilities/cn.ts",
      "content": "import { ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n\treturn twMerge(clsx(inputs));\r\n}\r\n",
      "type": "registry:ui"
    }
  ]
}