{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A search input with a magnifier. `value` fires on every keystroke with the new text.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/** A search input with a magnifier. `value` fires on every keystroke with the new text. */\nimport { type JSX } from \"solid-js\";\nimport { Box, Input } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { cn } from \"../utils\";\n\nexport type SearchFieldProps = {\n  value: string;\n  placeholder?: string;\n  label: string;\n  class?: string;\n  onValue?: (value: string) => void;\n};\n\nexport function SearchField({ value, placeholder, label, class: className, onValue }: SearchFieldProps) {\n  return (\n    <Box class={cn(\"relative min-w-44 flex-1\", className)} role=\"search\" data-slot=\"search-field\">\n      <LucideIcon name=\"search\" size={16} class=\"pointer-events-none absolute top-2 left-3 text-muted-foreground\" />\n      <Input\n        size=\"sm\"\n        type=\"search\"\n        placeholder={placeholder}\n        aria-label={label}\n        class=\"pr-3 pl-10\"\n        value={value}\n        onInput={(event: InputEvent & { currentTarget: HTMLInputElement }) => onValue?.(event.currentTarget.value)}\n      />\n    </Box>\n  );\n}\n",
      "path": "components/search-field.tsx",
      "target": "components/search-field.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "search-field",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "solid",
  "title": "Search Field",
  "type": "registry:component"
}
