{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Feature } from \"./feature-grid.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.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 SectionFrame from \"../components/section-frame.svelte\";\n  import { cn } from \"../utils\";\n\n  let {\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 = $props();\n</script>\n\n<SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n  {#if ((features?.length ?? 0) === 0)}\n    <EmptyState icon=\"layout-grid\" title={empty} />\n  {:else}\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        {#each features as f (f.id)}\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        {/each}\n      </Stack>\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/feature-sticky.svelte",
      "target": "blocks/feature-sticky.svelte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "feature-sticky",
  "registryDependencies": [
    "box",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Feature Sticky",
  "type": "registry:block"
}
