{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features as tabs; the chosen one fills the panel beside or below the tab list.",
  "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 behind a tab list: the chosen tab shows its text and a picture. The page keeps the chosen tab\n  (`active`, empty for the first) and updates it on the `select` event. Axes: panel (split: text beside the\n  picture, stack: picture below), tone, density.\n-->\n<script lang=\"ts\">\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type FeatureTabsProps = {\n  id: string;\n  title: string;\n  features: Feature[];\n  empty?: string;\n  tabsLabel: string;\n  active?: string;\n  panel?: \"split\" | \"stack\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Grid from \"../compose/Grid.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.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 SectionFrame from \"../components/section-frame.vue\";\nimport Switcher from \"../components/switcher.vue\";\nimport SwitcherItem from \"../components/switcher-item.vue\";\n\nconst {\n  id,\n  title,\n  features,\n  empty = \"\",\n  tabsLabel,\n  active = \"\",\n  panel = \"split\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<FeatureTabsProps>();\nconst emit = defineEmits<{ select: [id: string] }>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((features?.length ?? 0) === 0)\" icon=\"layout-grid\" :title=\"empty\" />\n    <Stack v-else gap=\"6\" align=\"stretch\">\n      <Switcher :label=\"tabsLabel\" class=\"w-fit max-w-full flex-wrap\">\n        <SwitcherItem v-for=\"(f, i) in features\" :key=\"f.id\"\n          :active=\"((f.id === active) || (((active as string) === '') && (i === 0)))\"\n          @click=\"() => emit('select', f.id)\"\n        >\n          {{ f.title }}\n        </SwitcherItem>\n      </Switcher>\n      <template v-for=\"(f, i) in features\" :key=\"f.id\">\n        <Grid v-if=\"((f.id === active) || (((active as string) === '') && (i === 0)))\"\n          :cols=\"(((panel as string) === 'split') ? '1-2' : '1')\"\n          class=\"items-center gap-8\"\n          role=\"tabpanel\"\n          data-slot=\"tab-panel\"\n        >\n          <Stack gap=\"4\">\n            <LucideIcon :name=\"f.icon\" :size=\"24\" />\n            <Title :as=\"3\" size=\"2xl\" weight=\"bold\">\n              {{ f.title }}\n            </Title>\n            <Text size=\"base\" class=\"text-muted-foreground\">\n              {{ f.text }}\n            </Text>\n          </Stack>\n          <MediaFrame :alt=\"f.title\" :src=\"f.image\" ratio=\"4/3\" />\n        </Grid>\n      </template>\n    </Stack>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/feature-tabs.vue",
      "target": "blocks/feature-tabs.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "feature-tabs",
  "registryDependencies": [
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "switcher",
    "switcher-item",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Feature Tabs",
  "type": "registry:block"
}
