{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-188",
  "type": "registry:component",
  "title": "Comp 188",
  "description": "Comp 188",
  "files": [
    {
      "path": "registry/ui-basic/comp-188.tsx",
      "content": "import { useId } from \"react\";\r\n\r\nimport { Label } from \"@/components/ui/label\";\r\nimport { Switch } from \"@/components/ui/switch\";\r\n\r\nexport default function Component() {\r\n\tconst id = useId();\r\n\treturn (\r\n\t\t<div className=\"border-input has-data-[state=checked]:border-primary/50 relative flex w-full items-start gap-2 rounded-md border p-4 shadow-2xs outline-hidden\">\r\n\t\t\t<Switch\r\n\t\t\t\tid={id}\r\n\t\t\t\tclassName=\"order-1 h-4 w-6 after:absolute after:inset-0 [&_span]:size-3 [&_span]:data-[state=checked]:translate-x-2 rtl:[&_span]:data-[state=checked]:-translate-x-2\"\r\n\t\t\t\taria-describedby={`${id}-description`}\r\n\t\t\t/>\r\n\t\t\t<div className=\"flex grow items-center gap-3\">\r\n\t\t\t\t<svg\r\n\t\t\t\t\tclassName=\"shrink-0\"\r\n\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\t\t\t\twidth={32}\r\n\t\t\t\t\theight={32}\r\n\t\t\t\t\taria-hidden=\"true\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"#121212\" />\r\n\t\t\t\t\t<g clipPath=\"url(#sb-a)\">\r\n\t\t\t\t\t\t<path\r\n\t\t\t\t\t\t\tfill=\"url(#sb-b)\"\r\n\t\t\t\t\t\t\td=\"M17.63 25.52c-.506.637-1.533.287-1.545-.526l-.178-11.903h8.003c1.45 0 2.259 1.674 1.357 2.81l-7.637 9.618Z\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<path\r\n\t\t\t\t\t\t\tfill=\"url(#sb-c)\"\r\n\t\t\t\t\t\t\tfillOpacity=\".2\"\r\n\t\t\t\t\t\t\td=\"M17.63 25.52c-.506.637-1.533.287-1.545-.526l-.178-11.903h8.003c1.45 0 2.259 1.674 1.357 2.81l-7.637 9.618Z\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<path\r\n\t\t\t\t\t\t\tfill=\"#3ECF8E\"\r\n\t\t\t\t\t\t\td=\"M14.375 6.367c.506-.638 1.532-.289 1.544.525l.078 11.903H8.094c-1.45 0-2.258-1.674-1.357-2.81l7.638-9.618Z\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</g>\r\n\t\t\t\t\t<defs>\r\n\t\t\t\t\t\t<linearGradient\r\n\t\t\t\t\t\t\tid=\"sb-b\"\r\n\t\t\t\t\t\t\tx1=\"15.907\"\r\n\t\t\t\t\t\t\tx2=\"23.02\"\r\n\t\t\t\t\t\t\ty1=\"15.73\"\r\n\t\t\t\t\t\t\ty2=\"18.713\"\r\n\t\t\t\t\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<stop stopColor=\"#249361\" />\r\n\t\t\t\t\t\t\t<stop offset=\"1\" stopColor=\"#3ECF8E\" />\r\n\t\t\t\t\t\t</linearGradient>\r\n\t\t\t\t\t\t<linearGradient\r\n\t\t\t\t\t\t\tid=\"sb-c\"\r\n\t\t\t\t\t\t\tx1=\"12.753\"\r\n\t\t\t\t\t\t\tx2=\"15.997\"\r\n\t\t\t\t\t\t\ty1=\"11.412\"\r\n\t\t\t\t\t\t\ty2=\"17.519\"\r\n\t\t\t\t\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<stop />\r\n\t\t\t\t\t\t\t<stop offset=\"1\" stopOpacity=\"0\" />\r\n\t\t\t\t\t\t</linearGradient>\r\n\t\t\t\t\t\t<clipPath id=\"sb-a\">\r\n\t\t\t\t\t\t\t<path fill=\"#fff\" d=\"M6.354 6h19.292v20H6.354z\" />\r\n\t\t\t\t\t\t</clipPath>\r\n\t\t\t\t\t</defs>\r\n\t\t\t\t</svg>\r\n\t\t\t\t<div className=\"grid grow gap-2\">\r\n\t\t\t\t\t<Label htmlFor={id}>\r\n\t\t\t\t\t\tLabel{\" \"}\r\n\t\t\t\t\t\t<span className=\"text-muted-foreground text-xs leading-[inherit] font-normal\">\r\n\t\t\t\t\t\t\t(Sublabel)\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</Label>\r\n\t\t\t\t\t<p\r\n\t\t\t\t\t\tid={`${id}-description`}\r\n\t\t\t\t\t\tclassName=\"text-muted-foreground text-xs\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tA short description goes here.\r\n\t\t\t\t\t</p>\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/label.tsx",
      "content": "\"use client\";\n\nimport React from \"react\";\n\nimport { cn } from \"@/registry/utilities/cn\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nconst labelVariants = cva(\n\t\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n);\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(labelVariants(), className)}\n\t\t{...props}\n\t/>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\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"
    },
    {
      "path": "components/ui/switch.tsx",
      "content": "\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\";\r\n\r\nconst Switch = React.forwardRef<\r\n\tReact.ElementRef<typeof SwitchPrimitives.Root>,\r\n\tReact.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\r\n>(({ className, ...props }, ref) => (\r\n\t<SwitchPrimitives.Root\r\n\t\tclassName={cn(\r\n\t\t\t\"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\r\n\t\t\tclassName\r\n\t\t)}\r\n\t\t{...props}\r\n\t\tref={ref}\r\n\t>\r\n\t\t<SwitchPrimitives.Thumb\r\n\t\t\tclassName={cn(\r\n\t\t\t\t\"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\r\n\t\t\t)}\r\n\t\t/>\r\n\t</SwitchPrimitives.Root>\r\n));\r\nSwitch.displayName = SwitchPrimitives.Root.displayName;\r\n\r\nexport { Switch };\r\n",
      "type": "registry:ui"
    }
  ]
}