{
  "$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-->\n<script lang=\"ts\">\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</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Card from \"../compose/Card.vue\";\nimport CardContent from \"../compose/CardContent.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport MenuEntry from \"../components/menu-entry.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\n\nconst {\n  id,\n  title,\n  lead = \"\",\n  features,\n  empty = \"\",\n  more,\n  item = \"picture\",\n  cols = \"3\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<FeatureShowcaseProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :lead=\"lead\" :tone=\"tone\" align=\"center\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((features?.length ?? 0) === 0)\" icon=\"layout-grid\" :title=\"empty\" />\n    <Box v-else\n      :class=\"\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      <Card v-for=\"f in features\" :key=\"f.id\" variant=\"default\" class=\"h-full gap-4 overflow-hidden\">\n        <MediaFrame v-if=\"((item as string) === 'picture')\" :alt=\"f.title\" :src=\"f.image\" />\n        <Box v-else\n          class=\"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        <CardContent class=\"flex flex-1 flex-col gap-2\">\n          <Title :as=\"3\" size=\"base\" weight=\"semibold\">\n            {{ f.title }}\n          </Title>\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {{ f.text }}\n          </Text>\n          <MenuEntry\n            v-if=\"((item as string) === 'picture')\"\n            :href=\"f.href\"\n            class=\"mt-auto gap-2 pt-2 text-sm font-medium\"\n            size=\"sm\"\n            testid=\"read\"\n          >\n            {{ more }}\n            <LucideIcon name=\"arrow-right\" :size=\"16\" />\n          </MenuEntry>\n        </CardContent>\n      </Card>\n    </Box>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/feature-showcase.vue",
      "target": "blocks/feature-showcase.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "feature-showcase",
  "registryDependencies": [
    "box",
    "card",
    "card-content",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "section-frame",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Feature Showcase",
  "type": "registry:block"
}
