{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customer quotes as cards or plain figures.",
  "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/testimonial-grid.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\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// TestimonialGridProps are the props of TestimonialGrid; the values are the JSON shapes of the TypeScript props.\ntype TestimonialGridProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tQuotes any `json:\"quotes\"`\n\tEmpty any `json:\"empty\"`\n\tLabels any `json:\"labels\"`\n\tLayout any `json:\"layout\"`\n\tCols any `json:\"cols\"`\n\tItem any `json:\"item\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Customer quotes as cards, plain figures or social posts, in a grid, a masonry, a scroll strip, one featured quote or one narrow column. Axes: layout (grid, single, stack, masonry, strip), columns, item kind (card, plain, social), item avatar, item rating, item mark (a company glyph), density, tone. A carousel is the Carousel port contract around the single layout.\ntempl TestimonialGrid(p TestimonialGridProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vQuotes := p.Quotes }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vLabels := p.Labels }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"grid\") }}\n\t{{ vCols := uiutils.Def(p.Cols, \"1-3\") }}\n\t{{ vItem := p.Item }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"single\")), \"center\", \"start\"), Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"grid\")), \"default\", \"2xl\"), LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vQuotes), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"message-square-quote\", Title: vEmpty})\n\t\t} else if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"masonry\"), uiutils.Eq(vLayout, \"strip\"))) {\n\t\t\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"div\", Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"masonry\")), \"columns-1 gap-4 md:columns-2 xl:columns-3\", \"flex snap-x gap-4 overflow-x-auto pb-2\")), Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\t@QuoteCard(QuoteCardProps{Q: vQ, Labels: vLabels, Item: vItem, Layout: vLayout})\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"grid\")), vCols, \"1\")), BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor vI, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\tif uiutils.T(uiutils.Or(!uiutils.Eq(vLayout, \"single\"), uiutils.Eq(float64(vI), float64(0)))) {\n\t\t\t\t\t\t@QuoteCard(QuoteCardProps{Q: vQ, Labels: vLabels, Item: vItem, Layout: vLayout})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/testimonial-grid.templ",
      "target": "blocks/testimonial-grid.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "testimonial-grid",
  "registryDependencies": [
    "block",
    "empty-state",
    "grid",
    "kit-box",
    "quote-card",
    "section-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Testimonial Grid",
  "type": "registry:block"
}
