{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "banner-cta-bar",
  "type": "registry:block",
  "title": "Banner, call-to-action bar",
  "description": "A bar docked at the end of the page with a headline, a sentence and two actions. A last nudge after the content, not a notice. Empty secondary label drops that button.",
  "categories": [
    "banner"
  ],
  "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/banner-cta-bar/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/banner-cta-bar/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  title: t(80),\n  description: t(160),\n  primary: link,\n  secondary: link,\n});\n\nexport const spec = defineSpec({\n  type: 'banner-cta-bar',\n  aliases: ['banner/cta-bar'],\n  name: 'Banner, call-to-action bar',\n  category: 'banner',\n  role: 'foot',\n  description: 'A bar docked at the end of the page with a headline, a sentence and two actions. A last nudge after the content, not a notice. Empty secondary label drops that button.',\n  schema,\n  defaults: {\n    title: 'Name the next step',\n    description: 'Say what the visitor gets and what it costs them to start.',\n    primary: { label: 'Main action', href: '/hold' },\n    secondary: { label: 'Second action', href: '/contact' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/banner-cta-bar/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/banner-cta-bar/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Opt } 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 BannerCtaBar({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <section aria-labelledby={id} className=\"border-t border-kh-line-strong bg-kh-surface py-6 shadow-kh-2\">\n      <Container className=\"flex flex-col gap-5 @3xl:flex-row @3xl:items-center @3xl:justify-between @3xl:gap-10\">\n        <div className=\"min-w-0\">\n          <div id={id}>\n            <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-heading font-semibold\" />\n          </div>\n          <Opt path={['description']} value={props.description} className=\"mt-1 text-kh-small text-kh-muted\" placeholder=\"Description\" />\n        </div>\n        <div className=\"flex min-w-0 max-w-full flex-wrap gap-3 @3xl:shrink-0 @3xl:max-w-[60%]\">\n          <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" size=\"md\" />\n          <ActionLink path={['primary']} value={props.primary} size=\"md\" />\n        </div>\n      </Container>\n    </section>\n  );\n}\n\nexport default withHeadingLevel(BannerCtaBar);\n"
    }
  ]
}
