{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The features as a grid of cards, tiles or bordered cells (the body of FeatureGrid). Icons are Lucide names.",
  "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/** The features as a grid of cards, tiles or bordered cells (the body of FeatureGrid). Icons are Lucide names. */\nimport { For, type JSX } from \"solid-js\";\nimport { Card, CardContent, CardHeader, CardTitle, Grid, Group, IconBadge, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\nimport type { Feature } from \"../blocks/feature-grid.types\";\n\nexport type FeatureCardsProps = {\n  features: Feature[];\n  cols?: \"1-2\" | \"1-3\" | \"1-4\";\n  item?: \"card\" | \"tile\" | \"cell\";\n};\n\nexport function FeatureCards({ features, cols = \"1-3\", item = \"card\" }: FeatureCardsProps) {\n  return (\n    <Grid\n      cols={cols}\n      class={\n        (item as string) === \"cell\" ? cn(\"w-full gap-px overflow-hidden bg-border p-px\", defaults.features.cells)\n        : \"gap-6\"\n      }\n      data-slot=\"feature-grid\"\n    >\n      <For each={features ?? []}>{(feature) => (\n        <>\n          {((item as string) === \"tile\") ? (\n            <Card variant=\"compact\">\n              <Group gap=\"4\" align=\"start\">\n                <LucideIcon name={feature.icon} size={20} />\n                <Stack gap=\"2\">\n                  <Title as={3} size=\"base\" weight=\"bold\">\n                    {feature.title}\n                  </Title>\n                  <Text size=\"sm\" class=\"text-muted-foreground\">\n                    {feature.text}\n                  </Text>\n                </Stack>\n              </Group>\n            </Card>\n          ) : ((item as string) === \"cell\") ? (\n            <Stack\n              gap=\"2\"\n              align=\"center\"\n              class=\"h-full gap-8 bg-background px-6 py-12 text-center\"\n              data-slot=\"feature-card\"\n            >\n              <IconBadge variant=\"primary\" size=\"xl\" data-slot=\"feature-icon\">\n                <LucideIcon name={feature.icon} size={24} />\n              </IconBadge>\n              <Title as={3} size=\"xl\" weight=\"semibold\" class=\"leading-6\">\n                {feature.title}\n              </Title>\n              <Text size=\"sm\" weight=\"semibold\" class=\"leading-5 text-muted-foreground\">\n                {feature.text}\n              </Text>\n            </Stack>\n          ) : (\n            <Card variant=\"default\">\n              <CardHeader class=\"flex flex-col gap-4\">\n                <LucideIcon name={feature.icon} size={24} />\n                <CardTitle as={3}>\n                  {feature.title}\n                </CardTitle>\n              </CardHeader>\n              <CardContent>\n                <Text size=\"sm\" class=\"text-muted-foreground\">\n                  {feature.text}\n                </Text>\n              </CardContent>\n            </Card>\n          )}\n        </>\n      )}</For>\n    </Grid>\n  );\n}\n",
      "path": "components/feature-cards.tsx",
      "target": "components/feature-cards.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "feature-cards",
  "registryDependencies": [
    "compose",
    "feature-grid",
    "lucide-icon",
    "presets",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Cards",
  "type": "registry:component"
}
