{
  "$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\">\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</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\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 { cn } from \"../utils\";\n\nconst {\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} = defineProps<FeatureStickyProps>();\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    <Grid v-else 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        <Stack v-for=\"f in features\" :key=\"f.id\"\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      </Stack>\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/feature-sticky.vue",
      "target": "blocks/feature-sticky.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "feature-sticky",
  "registryDependencies": [
    "box",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Feature Sticky",
  "type": "registry:block"
}
