{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A picture that stays in view beside a list of features. Following the section being read is a port contract (ScrollSpy).",
  "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 picture that stays in view while the feature descriptions scroll beside it. `active` marks the description\n * that is current (the page follows the scroll; that is a port contract). Axes: mediaSide (end, start), item\n * (plain, card), tone, density.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, 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 { cn } from \"../utils\";\nimport type { Feature } from \"./feature-grid.types\";\n\nexport type FeatureStickyProps = {\n  id: string;\n  title: string;\n  features: Feature[];\n  empty?: string;\n  active?: string;\n  mediaSide?: \"end\" | \"start\";\n  item?: \"plain\" | \"card\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function FeatureSticky({\n  id,\n  title,\n  features,\n  empty = \"\",\n  active = \"\",\n  mediaSide = \"end\",\n  item = \"plain\",\n  tone = \"default\",\n  density = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: FeatureStickyProps) {\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        <Grid cols=\"1-2\" class=\"items-start gap-8\" data-slot=\"sticky\">\n          <Box\n            class={cn(\n              \"md:sticky md:top-8\",\n              (((mediaSide as string) === \"start\") ? \"md:order-first\" : \"md:order-last\")\n            )}\n            data-slot=\"sticky-media\"\n          >\n            <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n          </Box>\n          <Stack gap={(((density as string) === \"compact\") ? \"4\" : \"8\")} align=\"stretch\" data-slot=\"items\">\n            <For each={features ?? []}>{(f) => (\n              <Stack\n                gap=\"2\"\n                class={cn(\n                  (((item as string) === \"card\") ? \"rounded bg-card inset-ring inset-ring-border p-6\" : \"py-4\"),\n                  ((f.id === active) ? \"inset-ring inset-ring-foreground\" : \"\")\n                )}\n                aria-current={((f.id === active) ? \"true\" : undefined)}\n                data-slot=\"item\"\n              >\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            )}</For>\n          </Stack>\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/feature-sticky.tsx",
      "target": "blocks/feature-sticky.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "feature-sticky",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Sticky",
  "type": "registry:block"
}
