{
  "$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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Grid, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { Switcher } from \"../components/switcher\";\nimport { SwitcherItem } from \"../components/switcher-item\";\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  onSelect?: (id: string) => void;\n};\n\nexport function FeatureTabs({\n  id,\n  title,\n  features,\n  empty = \"\",\n  tabsLabel,\n  active = \"\",\n  panel = \"split\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n  onSelect,\n}: FeatureTabsProps) {\n  return (\n    <SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n      {((features?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"layout-grid\" title={empty} />\n      ) : (\n        <Stack gap=\"6\" align=\"stretch\">\n          <Switcher label={tabsLabel} class=\"w-fit max-w-full flex-wrap\">\n            <For each={features ?? []}>{(f, iOf) => { const i = iOf(); return (\n              <SwitcherItem\n                active={((f.id === active) || (((active as string) === \"\") && (i === 0)))}\n                onClick={() => onSelect?.(f.id)}\n              >\n                {f.title}\n              </SwitcherItem>\n            ); }}</For>\n          </Switcher>\n          <For each={features ?? []}>{(f, iOf) => { const i = iOf(); return (\n            <>\n              {((f.id === active) || (((active as string) === \"\") && (i === 0))) ? (\n                <Grid\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              ) : null}\n            </>\n          ); }}</For>\n        </Stack>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/feature-tabs.tsx",
      "target": "blocks/feature-tabs.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "feature-tabs",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "switcher",
    "switcher-item",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Tabs",
  "type": "registry:block"
}
