{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-showcase",
  "type": "registry:block",
  "title": "Features, showcase",
  "description": "A centred stack in one column: heading, a sentence and up to two buttons, then one wide picture under them. For a product or plan shown whole, mid-page.",
  "categories": [
    "features"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json"
  ],
  "files": [
    {
      "path": "src/blocks/features-showcase/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-showcase/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  /** Up to two buttons, centred under the text; an empty label draws no button. */\n  primary: link,\n  secondary: link,\n  /** One wide picture under the text, the width of the page (a product screen, a short video's poster). */\n  media,\n  /** The heading's size: 'title' is the large one, 'heading' one step smaller, for a section that opens on a quiet line. */\n  titleSize: z.enum(['title', 'heading']).default('title'),\n});\n\nexport const spec = defineSpec({\n  type: 'features-showcase',\n  aliases: ['features/showcase'],\n  sourceRuns: ['rmwj00gl325eeaa', 'rmwj0r19632ec99'],\n  name: 'Features, showcase',\n  category: 'features',\n  role: 'body',\n  description: 'A centred stack in one column: heading, a sentence and up to two buttons, then one wide picture under them. For a product or plan shown whole, mid-page.',\n  schema,\n  defaults: {\n    eyebrow: '',\n    title: 'Name the product or plan this section shows',\n    description: 'Say in one or two sentences what it lets the reader do and who it is for.',\n    primary: { label: 'Main action', href: '#' },\n    secondary: { label: '', href: '' },\n    media: { src: '', alt: 'Describe what the picture shows' },\n    titleSize: 'title',\n  },\n});\n"
    },
    {
      "path": "src/blocks/features-showcase/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/features-showcase/index.tsx",
      "content": "import { useId } from 'react';\nimport { Media, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Section, SectionHeader, useEditing } from '../_shared/kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\n// The study's \"centered stack\" (Loom, Figma, Shopify): heading, line and action in one centred column, one wide picture beneath.\nfunction FeaturesShowcase({ props }: BlockProps<Props>) {\n  const id = useId();\n  const editing = useEditing();\n  const hasActions = !!(props.primary.label || props.secondary.label) || editing;\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <SectionHeader id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} align=\"center\" className={props.titleSize === 'heading' ? '[&_h2]:text-kh-heading' : undefined} />\n        {hasActions && (\n          <div className=\"mt-8 flex flex-wrap items-center justify-center gap-3\">\n            <ActionLink path={['primary']} value={props.primary} />\n            <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" />\n          </div>\n        )}\n        <Media path={['media']} value={props.media} ratio=\"16 / 9\" className=\"mx-auto mt-14 max-w-kh-page rounded-kh-xl border border-kh-line\" />\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(FeaturesShowcase);\n"
    }
  ]
}
