{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Cards with a picture on top and a read link, or with a muted glyph panel on top like an index of categories, in three or four 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/feature-showcase.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/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FeatureShowcaseProps are the props of FeatureShowcase; the values are the JSON shapes of the TypeScript props.\ntype FeatureShowcaseProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tFeatures any `json:\"features\"`\n\tEmpty any `json:\"empty\"`\n\tMore any `json:\"more\"`\n\tItem any `json:\"item\"`\n\tCols any `json:\"cols\"`\n\tTone any `json:\"tone\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Features as cards under a centered heading. Axes: item (picture: a picture on top, then the title, the text and a read link; panel: a muted panel with a large glyph on top, then the title and the text), cols (3, 4), tone.\ntempl FeatureShowcase(p FeatureShowcaseProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vFeatures := p.Features }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vMore := p.More }}\n\t{{ vItem := uiutils.Def(p.Item, \"picture\") }}\n\t{{ vCols := uiutils.Def(p.Cols, \"3\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Align: \"center\", LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vFeatures), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"layout-grid\", Title: vEmpty})\n\t\t} else {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, \"4\")), \"grid grid-cols-1 gap-6 text-start sm:grid-cols-2 lg:grid-cols-4\", \"grid grid-cols-1 gap-6 text-start sm:grid-cols-2 lg:grid-cols-3\"))}}) {\n\t\t\t\tfor _, vF := range uiutils.L(vFeatures) {\n\t\t\t\t\t@compose.Card(compose.CardProps{Variant: \"default\", BoxProps: box.BoxProps{Class: \"h-full gap-4 overflow-hidden\"}}) {\n\t\t\t\t\t\tif uiutils.Eq(vItem, \"picture\") {\n\t\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vF, \"title\"), Src: uiutils.Get(vF, \"image\")})\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex aspect-video items-center justify-center rounded bg-muted text-foreground\", Attrs: uiutils.Attrs(\"data-slot\", \"showcase-panel\")}}) {\n\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vF, \"icon\")), Size: 32})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.CardContent(compose.CardContentProps{BoxProps: box.BoxProps{Class: \"flex flex-1 flex-col gap-2\"}}) {\n\t\t\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\t\t{ uiutils.Text(uiutils.Get(vF, \"title\")) }\n\t\t\t\t\t\t\t}\n\t\t\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\t\t{ uiutils.Text(uiutils.Get(vF, \"text\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif uiutils.Eq(vItem, \"picture\") {\n\t\t\t\t\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vF, \"href\"), Class: uiutils.Cnv(\"mt-auto gap-2 pt-2 text-sm font-medium\"), Size: \"sm\", Testid: \"read\"}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(vMore) }\n\t\t\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"arrow-right\", Size: 16})\n\t\t\t\t\t\t\t\t}\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/feature-showcase.templ",
      "target": "blocks/feature-showcase.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "feature-showcase",
  "registryDependencies": [
    "box",
    "card",
    "card-content",
    "empty-state",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "section-frame",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Feature Showcase",
  "type": "registry:block"
}
