{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-bar",
  "type": "registry:block",
  "title": "Pricing, bar",
  "description": "One slim band between two rules: a heading on the left, the price with its period and one button on the right; on a phone they stack and the price and button centre under the heading.",
  "categories": [
    "pricing"
  ],
  "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",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/pricing-bar/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-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  price: t(16),\n  period: t(40),\n  cta: link,\n});\n\nexport const spec = defineSpec({\n  type: 'pricing-bar',\n  aliases: ['pricing/bar'],\n  sourceRuns: ['rmwj1xsan8cae41', 'rmwj0s7kl8e1218'],\n  name: 'Pricing, bar',\n  category: 'pricing',\n  role: 'body',\n  description: 'One slim band between two rules: a heading on the left, the price with its period and one button on the right; on a phone they stack and the price and button centre under the heading.',\n  schema,\n  defaults: {\n    title: 'Say in a few words what the visitor gets for this price',\n    price: 'Price',\n    period: 'Say the billing period',\n    cta: { label: 'Say what the button does', href: '#start' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/pricing-bar/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/pricing-bar/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { cn } from '../../lib/utils';\nimport { ActionLink, Container, Section, nowrapIfShort } from '../_shared/kit';\nimport { 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 PricingBar({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id} className=\"border-y border-kh-line bg-kh-surface px-kh-gutter\">\n      <Container className=\"px-0\">\n        <div className=\"flex flex-col gap-6 @3xl:flex-row @3xl:items-center @3xl:justify-between @3xl:gap-10\">\n          <div id={id} className=\"min-w-0 @3xl:mr-auto\">\n            <Text path={['title']} value={props.title} as=\"h2\" className=\"font-kh-display text-kh-heading text-kh-ink\" />\n          </div>\n          <p className=\"flex flex-wrap items-baseline justify-center gap-2 @3xl:flex-none\">\n            <Text path={['price']} value={props.price} as=\"span\" className={cn(nowrapIfShort(props.price), 'font-kh-display text-kh-title text-kh-ink')} />\n            <Text path={['period']} value={props.period} as=\"span\" className=\"font-kh-mono text-kh-small text-kh-muted\" />\n          </p>\n          <ActionLink path={['cta']} value={props.cta} size=\"lg\" className=\"self-start rounded-kh-pill @3xl:self-auto\" />\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(PricingBar);\n"
    }
  ]
}
