{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The questions of FaqSplit as cards: the topic, the question, the answer and a read-more link; with an icon square on top in the icons shape. Shapes: grid3, grid4, icons (three columns).",
  "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-cards.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/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FaqCardsProps are the props of FaqCards; the values are the JSON shapes of the TypeScript props.\ntype FaqCardsProps struct {\n\tItems any `json:\"items\"`\n\tLabels any `json:\"labels\"`\n\tCards any `json:\"cards\"`\n}\n\n// The questions of FaqSplit as cards: the topic, the question, the answer and a read-more link; with an icon square on top in the icons shape. Shapes: grid3, grid4, icons (three columns).\ntempl FaqCards(p FaqCardsProps) {\n\t{{ vItems := p.Items }}\n\t{{ vLabels := p.Labels }}\n\t{{ vCards := uiutils.Def(p.Cards, \"grid3\") }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCards, \"grid4\")), \"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\", \"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\")), Attrs: uiutils.Attrs(\"data-slot\", \"faq\")}}) {\n\t\tfor _, vQ := range uiutils.L(vItems) {\n\t\t\t@ArticleBlock(ArticleBlockProps{Class: uiutils.Cnv(\"rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6\"), Testid: \"faq-card\"}) {\n\t\t\t\tif uiutils.Eq(vCards, \"icons\") {\n\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex size-10 shrink-0 items-center justify-center rounded bg-muted\"}}) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vQ, \"icon\")), Size: 20})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{Class: \"w-fit\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"category\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"question\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vQ, \"answer\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"mt-auto\"}}) {\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"link\", Size: \"sm\", ButtonProps: button.ButtonProps{Class: \"gap-2 px-0 font-medium\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"more\")) }\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"arrow-right\", Size: 16})\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-cards.templ",
      "target": "blocks/faq-cards.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "faq-cards",
  "registryDependencies": [
    "article-block",
    "badge",
    "box",
    "button",
    "kit-box",
    "kit-button",
    "kit-text",
    "lucide-icon",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Faq Cards",
  "type": "registry:component"
}
