{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The finder of FaqSplit: a search field, the topics as a row of buttons, and the first three questions as popular links.",
  "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/faq-finder.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FaqFinderProps are the props of FaqFinder; the values are the JSON shapes of the TypeScript props.\ntype FaqFinderProps struct {\n\tItems any `json:\"items\"`\n\tLabels any `json:\"labels\"`\n\tTopics any `json:\"topics\"`\n}\n\n// The finder of FaqSplit: a search field, the topics as a row of buttons, and the first three questions as popular links.\ntempl FaqFinder(p FaqFinderProps) {\n\t{{ vItems := p.Items }}\n\t{{ vLabels := p.Labels }}\n\t{{ vTopics := p.Topics }}\n\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"faq-finder\")}}) {\n\t\t@SearchField(SearchFieldProps{Label: uiutils.Get(vLabels, \"search\"), Placeholder: uiutils.Get(vLabels, \"search\"), Value: uiutils.Coalesce(uiutils.Get(vLabels, \"query\"), \"\")})\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\tfor _, vT := range uiutils.L(vTopics) {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"sm\", ButtonProps: button.ButtonProps{Attrs: uiutils.Attrs(\"data-value\", uiutils.Get(vT, \"value\"))}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vT, \"title\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"popular\")) }\n\t\t\t}\n\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: \"m-0 flex list-none flex-col gap-2 p-0\"}}) {\n\t\t\t\tfor vI, vQ := range uiutils.L(vItems) {\n\t\t\t\t\tif uiutils.Lt(float64(vI), float64(3)) {\n\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"faq-popular\")}}) {\n\t\t\t\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vQ, \"href\"), Class: uiutils.Cnv(\"text-sm font-medium\"), Size: \"sm\"}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"question\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/faq-finder.templ",
      "target": "blocks/faq-finder.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "faq-finder",
  "registryDependencies": [
    "button",
    "group",
    "kit-box",
    "kit-button",
    "kit-text",
    "list",
    "list-item",
    "menu-entry",
    "search-field",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Faq Finder",
  "type": "registry:component"
}
