{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Search Field component",
  "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. -->\n<script lang=\"ts\">\nexport type SearchFieldProps = {\n  value: string;\n  placeholder?: string;\n  label: string;\n  class?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Input from \"../compose/Input.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport { cn } from \"../utils\";\n\nconst { value, placeholder, label, class: className } = defineProps<SearchFieldProps>();\nconst emit = defineEmits<{ value: [value: string] }>();\n</script>\n\n<template>\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      @input=\"(event: Event & { currentTarget: HTMLInputElement }) => emit('value', event.currentTarget.value)\"\n    />\n  </Box>\n</template>\n",
      "path": "components/search-field.vue",
      "target": "components/search-field.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "search-field",
  "registryDependencies": [
    "box",
    "input",
    "lucide-icon",
    "utils"
  ],
  "runtime": "vue",
  "title": "Search Field",
  "type": "registry:component"
}
