{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features as cards, tiles or rows with a picture.",
  "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\nexport type Feature = {\n  id: string;\n  title: string;\n  text: string;\n  icon: string;\n  href?: string;\n  image?: string;\n};\n",
      "path": "blocks/feature-grid.types.ts",
      "target": "blocks/feature-grid.types.ts"
    },
    {
      "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  A section with a heading and the features as a grid of cards or tiles, or as rows with a picture. Icons are\n  Lucide names. Axes: layout (grid, rows), columns, item (card, tile, cell: bordered tile with a round icon),\n  media side (rows), density, tone.\n-->\n<script lang=\"ts\">\nimport type { Feature } from \"./feature-grid.types\";\nimport type { HeadLink } from \"../components/section-frame.types\";\n\nexport type FeatureGridProps = {\n  id: string;\n  title: string;\n  features: Feature[];\n  empty?: string;\n  action?: HeadLink;\n  layout?: \"grid\" | \"rows\";\n  cols?: \"1-2\" | \"1-3\" | \"1-4\";\n  item?: \"card\" | \"tile\" | \"cell\";\n  mediaSide?: \"end\" | \"start\" | \"alternate\";\n  tone?: \"default\" | \"muted\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Group from \"../compose/Group.vue\";\nimport Link from \"../compose/Link.vue\";\nimport Title from \"../compose/Title.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport FeatureCards from \"../components/feature-cards.vue\";\nimport FeatureRows from \"../components/feature-rows.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn, urlOf } from \"../utils\";\n\nconst {\n  id,\n  title,\n  features,\n  empty = \"\",\n  action,\n  layout = \"grid\",\n  cols = \"1-3\",\n  item = \"card\",\n  mediaSide = \"end\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<FeatureGridProps>();\n</script>\n\n<template>\n  <SectionFrame v-if=\"((item as string) === 'cell')\"\n    :id=\"id\"\n    :tone=\"tone\"\n    :density=\"density\"\n    measure=\"fill\"\n    class=\"py-0\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <Group gap=\"4\" align=\"center\" justify=\"between\" class=\"w-full\">\n      <Title :as=\"2\" size=\"sm\" weight=\"semibold\" class=\"leading-7\" :id=\"(id + '-title')\">\n        {{ title }}\n      </Title>\n      <Link v-if=\"(action?.label && action?.href)\"\n        :href=\"urlOf(action?.href)\"\n        variant=\"default\"\n        :class=\"cn(defaults.text.tiny, 'shrink-0 font-medium leading-5')\"\n        data-slot=\"section-action\"\n      >\n        {{ action?.label }}\n      </Link>\n    </Group>\n    <EmptyState v-if=\"((features?.length ?? 0) === 0)\" icon=\"layout-grid\" :title=\"empty\" />\n    <FeatureCards v-else :features=\"features\" :cols=\"cols\" :item=\"item\" />\n  </SectionFrame>\n  <SectionFrame v-else\n    :id=\"id\"\n    :title=\"title\"\n    :action=\"action\"\n    :tone=\"tone\"\n    :density=\"density\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <EmptyState v-if=\"((features?.length ?? 0) === 0)\" icon=\"layout-grid\" :title=\"empty\" />\n    <FeatureRows v-else-if=\"((layout as string) === 'rows')\" :features=\"features\" :mediaSide=\"mediaSide\" />\n    <FeatureCards v-else :features=\"features\" :cols=\"cols\" :item=\"item\" />\n  </SectionFrame>\n</template>\n",
      "path": "blocks/feature-grid.vue",
      "target": "blocks/feature-grid.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "feature-grid",
  "registryDependencies": [
    "empty-state",
    "feature-cards",
    "feature-rows",
    "group",
    "link",
    "presets",
    "section-frame",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Feature Grid",
  "type": "registry:block"
}
