{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-227",
  "type": "registry:component",
  "title": "Comp 227",
  "description": "Comp 227",
  "files": [
    {
      "path": "registry/ui-basic/comp-227.tsx",
      "content": "import { useId } from \"react\";\r\n\r\nimport { Label } from \"@/components/ui/label\";\r\nimport {\r\n\tSelect,\r\n\tSelectContent,\r\n\tSelectGroup,\r\n\tSelectItem,\r\n\tSelectLabel,\r\n\tSelectTrigger,\r\n\tSelectValue,\r\n} from \"@/components/ui/select\";\r\n\r\nimport { cn } from \"../utilities/cn\";\r\n\r\nconst Square = ({\r\n\tclassName,\r\n\tchildren,\r\n}: {\r\n\tclassName?: string;\r\n\tchildren: React.ReactNode;\r\n}) => (\r\n\t<span\r\n\t\tdata-square\r\n\t\tclassName={cn(\r\n\t\t\t\"bg-muted text-muted-foreground flex size-5 items-center justify-center rounded text-xs font-medium\",\r\n\t\t\tclassName\r\n\t\t)}\r\n\t\taria-hidden=\"true\"\r\n\t>\r\n\t\t{children}\r\n\t</span>\r\n);\r\n\r\nexport default function Component() {\r\n\tconst id = useId();\r\n\treturn (\r\n\t\t<div className=\"not-first:*:mt-2\">\r\n\t\t\t<Label htmlFor={id}>Options with placeholder avatar</Label>\r\n\t\t\t<Select defaultValue=\"1\">\r\n\t\t\t\t<SelectTrigger\r\n\t\t\t\t\tid={id}\r\n\t\t\t\t\tclassName=\"ps-2 [&>span]:flex [&>span]:items-center [&>span]:gap-2 [&>span_[data-square]]:shrink-0\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<SelectValue placeholder=\"Select framework\" />\r\n\t\t\t\t</SelectTrigger>\r\n\t\t\t\t<SelectContent className=\"[&_*[role=option]]:ps-2 [&_*[role=option]]:pe-8 [&_*[role=option]>span]:start-auto [&_*[role=option]>span]:inset-e-2 [&_*[role=option]>span]:flex [&_*[role=option]>span]:items-center [&_*[role=option]>span]:gap-2\">\r\n\t\t\t\t\t<SelectGroup>\r\n\t\t\t\t\t\t<SelectLabel className=\"ps-2\">Impersonate user</SelectLabel>\r\n\t\t\t\t\t\t<SelectItem value=\"1\">\r\n\t\t\t\t\t\t\t<Square className=\"bg-indigo-400/20 text-indigo-500\">\r\n\t\t\t\t\t\t\t\tF\r\n\t\t\t\t\t\t\t</Square>\r\n\t\t\t\t\t\t\t<span className=\"truncate\">Frank Morris</span>\r\n\t\t\t\t\t\t</SelectItem>\r\n\t\t\t\t\t\t<SelectItem value=\"2\">\r\n\t\t\t\t\t\t\t<Square className=\"bg-purple-400/20 text-purple-500\">\r\n\t\t\t\t\t\t\t\tX\r\n\t\t\t\t\t\t\t</Square>\r\n\t\t\t\t\t\t\t<span className=\"truncate\">Xavier Guerra</span>\r\n\t\t\t\t\t\t</SelectItem>\r\n\t\t\t\t\t\t<SelectItem value=\"3\">\r\n\t\t\t\t\t\t\t<Square className=\"bg-rose-400/20 text-rose-500\">A</Square>\r\n\t\t\t\t\t\t\t<span className=\"truncate\">Anne Kelley</span>\r\n\t\t\t\t\t\t</SelectItem>\r\n\t\t\t\t\t</SelectGroup>\r\n\t\t\t\t</SelectContent>\r\n\t\t\t</Select>\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"
    }
  ]
}