{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "control-select",
  "title": "Control select",
  "description": "a choice from a longer list · the browser’s own select",
  "dependencies": [
    "cn@^0.5.2",
    "lucide-react@^1.52.0"
  ],
  "registryDependencies": [
    "@halftone-web/kit-setup"
  ],
  "files": [
    {
      "path": "components/controls/select.tsx",
      "content": "'use client';\nimport { cn } from 'cn';\nimport { ChevronDownIcon } from 'lucide-react';\n\nexport type SelectOption = { value: string; label: string };\n\n/**\n * A choice from a list too long for ControlSegmented, in a panel row. The browser's own select, so it works with the\n * keyboard, screen readers and a phone's picker without a popover.\n */\nexport function ControlSelect({ label, value, options, onChange, id, className }: { label: string; value: string; options: readonly SelectOption[]; onChange: (value: string) => void; id?: string; className?: string }) {\n  return (\n    <div className={cn('relative min-w-0', className)}>\n      <select\n        id={id}\n        value={value}\n        aria-label={id ? undefined : label}\n        onChange={(e) => onChange(e.target.value)}\n        className=\"border-border bg-background text-foreground focus-visible:ring-ring/50 h-7 w-full min-w-0 cursor-pointer appearance-none truncate rounded-md border pr-7 pl-2 text-xs outline-none focus-visible:ring-[3px]\">\n        {options.map((o) => (\n          <option key={o.value} value={o.value}>\n            {o.label}\n          </option>\n        ))}\n      </select>\n      <ChevronDownIcon aria-hidden className=\"text-muted-foreground pointer-events-none absolute top-1/2 right-2 size-3.5 -translate-y-1/2\" />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/controls/select.tsx"
    }
  ],
  "meta": {
    "exports": [
      "ControlSelect"
    ],
    "api": "<ControlSelect label value options onChange id? />"
  },
  "categories": [
    "controls"
  ],
  "type": "registry:component"
}