{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-minimal",
  "type": "registry:block",
  "title": "Call to action, minimal",
  "description": "Type only: an oversized headline between two hairlines and one arrow link, nothing else. For a quiet end of page, or between long sections. Empty hint hides the small line.",
  "categories": [
    "cta"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json",
    "https://ui.klarhimmel.com/r/text-link.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/cta-minimal/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-minimal/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(100),\n  link,\n  hint: t(100),\n  /** A second action as a button beside the arrow link. Empty label: not drawn. */\n  secondary: link.extend({ label: t(40).default(''), href: t(300).default('') }).optional(),\n});\n\nexport const spec = defineSpec({\n  type: 'cta-minimal',\n  aliases: ['cta/minimal'],\n  sourceRuns: ['rmwj03p9ef3c3ba'],\n  name: 'Call to action, minimal',\n  category: 'cta',\n  role: 'body',\n  description: 'Type only: an oversized headline between two hairlines and one arrow link, nothing else. For a quiet end of page, or between long sections. Empty hint hides the small line.',\n  schema,\n  defaults: {\n    eyebrow: '',\n    title: 'Say what the visitor can do next',\n    link: { label: 'Main action', href: '/signup' },\n    hint: 'Say what the start costs',\n  },\n});\n"
    },
    {
      "path": "src/blocks/cta-minimal/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-minimal/index.tsx",
      "content": "import { ArrowRight } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { linkClass } from '../../ui/text-link';\nimport { ActionLink, Container, Eyebrow, Opt, Section, useEditing } from '../_shared/kit';\nimport { useHeadingId } from '../_shared/c-proof-kit';\nimport { cn } from '../../lib/utils';\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 CtaMinimal({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const editing = useEditing();\n  const buttons = !!props.secondary?.label;\n  const main = (props.link.label || editing) && (\n    <a href={safeHref(props.link.href)} className={cn(linkClass(), 'inline-flex min-h-11 items-center gap-3 text-kh-heading font-semibold no-underline')}>\n      <Text path={['link', 'label']} value={props.link.label} as=\"span\" className=\"underline decoration-2 underline-offset-8\" placeholder=\"Label\" />\n      <ArrowRight aria-hidden className=\"size-6\" />\n    </a>\n  );\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <div className={cn('flex flex-col gap-8 border-y', buttons ? 'border-kh-line' : 'border-kh-ink', buttons ? 'py-12 @3xl:flex-row @3xl:items-center @3xl:justify-between @3xl:py-16' : 'py-12 @3xl:flex-row @3xl:items-end @3xl:justify-between @3xl:py-16')}>\n          <div className=\"min-w-0\">\n            <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className={cn('max-w-3xl text-kh-title', buttons ? 'font-normal' : 'font-semibold @3xl:text-kh-display')} />\n            </div>\n          </div>\n          <div className=\"max-w-full shrink-0\">\n            {buttons && props.secondary ? (\n              <div className=\"flex flex-col gap-3 @md:flex-row @md:items-center @md:gap-4 [&>a]:w-full @md:[&>a]:w-auto\">\n                <ActionLink path={['link']} value={props.link} />\n                <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" />\n              </div>\n            ) : main}\n            <Opt path={['hint']} value={props.hint} className=\"mt-2 text-kh-small text-kh-muted\" placeholder=\"Hint\" />\n          </div>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(CtaMinimal);\n"
    }
  ]
}
