{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-code",
  "type": "registry:block",
  "title": "Hero, install command",
  "description": "Centered headline with a copyable install command and two links. For developer tools and libraries.",
  "categories": [
    "hero"
  ],
  "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/hero-code/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-code/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  command: t(120),\n  primary: link,\n  secondary: link,\n});\n\nexport const spec = defineSpec({\n  type: 'hero-code',\n  aliases: ['hero/install'],\n  name: 'Hero, install command',\n  category: 'hero',\n  role: 'body',\n  description: 'Centered headline with a copyable install command and two links. For developer tools and libraries.',\n  schema,\n  defaults: {\n    eyebrow: 'Name what this is',\n    title: 'Say what the visitor gets in one line',\n    description: 'Say in one or two sentences what it does, who it is for and what the visitor can do next, in plain words.',\n    command: 'npm create your-app@latest',\n    primary: { label: 'Main action', href: '#docs' },\n    secondary: { label: 'Second action', href: '#components' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/hero-code/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-code/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, CommandBlock, Container, Eyebrow, Section } 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\nfunction HeroCode({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id} className=\"pt-16 @3xl:pt-28\">\n      <Container className=\"text-center\">\n        <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n        <div id={id} className=\"mx-auto max-w-kh-narrow\">\n          <Text path={['title']} value={props.title} as=\"h1\" className=\"text-kh-display font-semibold\" />\n        </div>\n        <Text path={['description']} value={props.description} as=\"p\" multiline className=\"mx-auto mt-6 max-w-kh-lead text-kh-lead text-kh-muted\" />\n        <CommandBlock path={['command']} value={props.command} className=\"mx-auto mt-10 max-w-md text-left\" />\n        <div className=\"mt-6 flex flex-wrap justify-center gap-3\">\n          <ActionLink path={['primary']} value={props.primary} size=\"md\" />\n          <ActionLink path={['secondary']} value={props.secondary} variant=\"ghost\" size=\"md\" />\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(HeroCode);\n"
    }
  ]
}
