{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * Features as cards under a centered heading. Axes: item (picture: a picture on top, then the title, the text\n * and a read link; panel: a muted panel with a large glyph on top, then the title and the text), cols (3, 4),\n * tone.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, Card, CardContent, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type FeatureShowcaseProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  features: Feature[];\n  empty?: string;\n  more: string;\n  item?: \"picture\" | \"panel\";\n  cols?: \"3\" | \"4\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n\nexport function FeatureShowcase({\n  id,\n  title,\n  lead = \"\",\n  features,\n  empty = \"\",\n  more,\n  item = \"picture\",\n  cols = \"3\",\n  tone = \"default\",\n  landmarkLabel,\n}: FeatureShowcaseProps) {\n  return (\n    <SectionFrame id={id} title={title} lead={lead} tone={tone} align=\"center\" landmarkLabel={landmarkLabel}>\n      {((features?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"layout-grid\" title={empty} />\n      ) : (\n        <Box\n          className={\n            (cols as string) === \"4\" ? \"grid grid-cols-1 gap-6 text-start sm:grid-cols-2 lg:grid-cols-4\"\n            : \"grid grid-cols-1 gap-6 text-start sm:grid-cols-2 lg:grid-cols-3\"\n          }\n        >\n          {(features ?? []).map((f) => (\n            <Card key={f.id} variant=\"default\" className=\"h-full gap-4 overflow-hidden\">\n              {((item as string) === \"picture\") ? (\n                <MediaFrame alt={f.title} src={f.image} />\n              ) : (\n                <Box\n                  className=\"flex aspect-video items-center justify-center rounded bg-muted text-foreground\"\n                  data-slot=\"showcase-panel\"\n                >\n                  <LucideIcon name={f.icon} size={32} />\n                </Box>\n              )}\n              <CardContent className=\"flex flex-1 flex-col gap-2\">\n                <Title as={3} size=\"base\" weight=\"semibold\">\n                  {f.title}\n                </Title>\n                <Text size=\"sm\" className=\"text-muted-foreground\">\n                  {f.text}\n                </Text>\n                {((item as string) === \"picture\") ? (\n                  <MenuEntry href={f.href} className=\"mt-auto gap-2 pt-2 text-sm font-medium\" size=\"sm\" testid=\"read\">\n                    {more}\n                    <LucideIcon name=\"arrow-right\" size={16} />\n                  </MenuEntry>\n                ) : null}\n              </CardContent>\n            </Card>\n          ))}\n        </Box>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/feature-showcase.tsx",
      "target": "blocks/feature-showcase.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "feature-showcase",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "section-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Feature Showcase",
  "type": "registry:block"
}
