{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A search field with a search glyph and the keys that open it.",
  "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/organisms/search-palette.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\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// SearchPaletteProps are the props of SearchPalette; the values are the JSON shapes of the TypeScript props.\ntype SearchPaletteProps struct {\n\tLabel any `json:\"label\"`\n\tShortcut any `json:\"shortcut\"`\n}\n\n// A search field with a search glyph and the keys that open it.\ntempl SearchPalette(p SearchPaletteProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vShortcut := p.Shortcut }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"relative w-full max-w-sm\", Attrs: uiutils.Attrs(\"data-slot\", \"palette\")}}) {\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(vLabel), Class: \"pr-12 pl-10\", Attrs: uiutils.Attrs(\"aria-label\", vLabel)}})\n\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"pointer-events-none absolute top-2 right-2 rounded px-2 py-0 text-xs text-muted-foreground inset-ring inset-ring-border\"}}) {\n\t\t\t{ uiutils.Text(vShortcut) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/search-palette.templ",
      "target": "blocks/search-palette.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "search-palette",
  "registryDependencies": [
    "box",
    "inline",
    "input",
    "kit-box",
    "kit-input",
    "kit-text",
    "lucide-icon",
    "utils"
  ],
  "runtime": "templ",
  "title": "Search Palette",
  "type": "registry:component"
}
