{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "steps-media",
  "type": "registry:block",
  "title": "Steps, with image",
  "description": "A picture on one side that stays in view while three to six numbered steps run down the other. Use when one screenshot explains the whole flow.",
  "categories": [
    "steps"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json"
  ],
  "files": [
    {
      "path": "src/blocks/steps-media/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/steps-media/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  media,\n  steps: z.array(z.object({ title: t(80), description: t(240) })).min(3).max(6),\n  cta: link,\n});\n\nexport const spec = defineSpec({\n  type: 'steps-media',\n  aliases: ['steps/media'],\n  name: 'Steps, with image',\n  category: 'steps',\n  role: 'body',\n  description: 'A picture on one side that stays in view while three to six numbered steps run down the other. Use when one screenshot explains the whole flow.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say how quick it is',\n    description: 'Say in one line how to follow the steps and how long each takes.',\n    media: { src: '', alt: 'Show a settings view with a plan, its limits and use' },\n    steps: [\n      { title: 'Name the first step', description: 'Say what the reader does first, and what to have at hand.' },\n      { title: 'Name the second step', description: 'Say what the reader decides in the second step, and what the choices are.' },\n      { title: 'Name the third step', description: 'Say what the reader connects or sets up in the third step.' },\n      { title: 'Name the fourth step', description: 'Say what the reader does last, and where it ends up.' },\n    ],\n    cta: { label: 'Main action', href: '/signup' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/steps-media/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/steps-media/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Section } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-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\nfunction StepsMedia({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <div className=\"mt-14 grid gap-12 @4xl:grid-cols-[1fr_1fr] @4xl:gap-16\">\n          <div className=\"@4xl:sticky @4xl:top-8 @4xl:self-start\">\n            <Media path={['media']} value={props.media} ratio=\"4 / 5\" className=\"rounded-kh-xl border border-kh-line\" />\n          </div>\n          <div>\n            <ol className=\"space-y-8\">\n              {props.steps.map((s, i) => (\n                <li key={i} className=\"flex gap-5\">\n                  <span aria-hidden className=\"flex size-10 shrink-0 items-center justify-center rounded-kh-pill border border-kh-line-strong bg-kh-surface text-kh-small font-semibold tabular-nums\">\n                    {i + 1}\n                  </span>\n                  <div className=\"pt-1.5\">\n                    <Text path={['steps', i, 'title']} value={s.title} as=\"h3\" className=\"text-kh-heading font-semibold\" />\n                    <Text path={['steps', i, 'description']} value={s.description} as=\"p\" multiline className=\"mt-2 text-kh-body text-kh-muted\" />\n                  </div>\n                </li>\n              ))}\n            </ol>\n            <div className=\"mt-10\">\n              <ActionLink path={['cta']} value={props.cta} />\n            </div>\n          </div>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(StepsMedia);\n"
    }
  ]
}
