{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Feature } from \"./feature-grid.types\";\n\n  export 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 lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Card from \"../compose/Card.svelte\";\n  import CardContent from \"../compose/CardContent.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import MenuEntry from \"../components/menu-entry.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n\n  let {\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 = $props();\n</script>\n\n<SectionFrame id={id} title={title} lead={lead} tone={tone} align=\"center\" landmarkLabel={landmarkLabel}>\n  {#if ((features?.length ?? 0) === 0)}\n    <EmptyState icon=\"layout-grid\" title={empty} />\n  {:else}\n    <Box\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      {#each features as f (f.id)}\n        <Card variant=\"default\" class=\"h-full gap-4 overflow-hidden\">\n          {#if ((item as string) === \"picture\")}\n            <MediaFrame alt={f.title} src={f.image} />\n          {:else}\n            <Box\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          {/if}\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            {#if ((item as string) === \"picture\")}\n              <MenuEntry href={f.href} class=\"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            {/if}\n          </CardContent>\n        </Card>\n      {/each}\n    </Box>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/feature-showcase.svelte",
      "target": "blocks/feature-showcase.svelte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "svelte",
      "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": "svelte",
  "title": "Feature Showcase",
  "type": "registry:block"
}
