{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/parts/search-field.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/input\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// SearchFieldProps are the props of SearchField; the values are the JSON shapes of the TypeScript props.\ntype SearchFieldProps struct {\n\tValue any `json:\"value\"`\n\tPlaceholder any `json:\"placeholder\"`\n\tLabel any `json:\"label\"`\n\tClass string `json:\"className\"`\n}\n\n// A search input with a magnifier. `value` fires on every keystroke with the new text.\ntempl SearchField(p SearchFieldProps) {\n\t{{ vValue := p.Value }}\n\t{{ vPlaceholder := p.Placeholder }}\n\t{{ vLabel := p.Label }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"relative min-w-44 flex-1\", p.Class)), Attrs: uiutils.Attrs(\"role\", \"search\", \"data-slot\", \"search-field\")}}) {\n\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"search\", Size: 16, Class: \"pointer-events-none absolute top-2 left-3 text-muted-foreground\"})\n\t\t@compose.Input(compose.InputProps{Size: \"sm\", InputProps: input.InputProps{Type: \"search\", Placeholder: uiutils.S(vPlaceholder), Class: \"pr-3 pl-10\", Value: uiutils.SP(vValue), Attrs: uiutils.Attrs(\"aria-label\", vLabel)}})\n\t}\n}\n",
      "path": "blocks/search-field.templ",
      "target": "blocks/search-field.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "search-field",
  "registryDependencies": [
    "box",
    "input",
    "kit-box",
    "kit-input",
    "lucide-icon",
    "utils"
  ],
  "runtime": "templ",
  "title": "Search Field",
  "type": "registry:component"
}
