{
  "$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/**\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 */\nimport { type JSX } from \"solid-js\";\nimport { Group, Link, Title } from \"../compose\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { FeatureCards } from \"../components/feature-cards\";\nimport { FeatureRows } from \"../components/feature-rows\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn, urlOf } from \"../utils\";\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\nexport function FeatureGrid({\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}: FeatureGridProps) {\n  return (\n    <>\n      {((item as string) === \"cell\") ? (\n        <SectionFrame id={id} tone={tone} density={density} measure=\"fill\" class=\"py-0\" landmarkLabel={landmarkLabel}>\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            {(action?.label && action?.href) ? (\n              <Link\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            ) : null}\n          </Group>\n          {((features?.length ?? 0) === 0) ? (\n            <EmptyState icon=\"layout-grid\" title={empty} />\n          ) : (\n            <FeatureCards features={features} cols={cols} item={item} />\n          )}\n        </SectionFrame>\n      ) : (\n        <SectionFrame id={id} title={title} action={action} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n          {((features?.length ?? 0) === 0) ? (\n            <EmptyState icon=\"layout-grid\" title={empty} />\n          ) : ((layout as string) === \"rows\") ? (\n            <FeatureRows features={features} mediaSide={mediaSide} />\n          ) : (\n            <FeatureCards features={features} cols={cols} item={item} />\n          )}\n        </SectionFrame>\n      )}\n    </>\n  );\n}\n",
      "path": "blocks/feature-grid.tsx",
      "target": "blocks/feature-grid.tsx"
    },
    {
      "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"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "feature-grid",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-cards",
    "feature-rows",
    "presets",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Grid",
  "type": "registry:block"
}
