{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "content-split-text",
  "type": "registry:block",
  "title": "Content, text and perks card",
  "description": "A heading and a few short paragraphs on the left, a bordered card on the right with up to four icon, title and description points. On a phone the card sits under the text and each icon sits above its title.",
  "categories": [
    "content"
  ],
  "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/content-split-text/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/content-split-text/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, icon, t } from '../_shared/schema';\n\nconst schema = z.object({\n  title: t(80),\n  /** Blank lines draw as paragraph gaps. */\n  body: t(900),\n  items: z.array(z.object({ icon, title: t(40), description: t(160) })).min(1).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'content-split-text',\n  aliases: ['content/split-text'],\n  name: 'Content, text and perks card',\n  category: 'content',\n  role: 'body',\n  description: 'A heading and a few short paragraphs on the left, a bordered card on the right with up to four icon, title and description points. On a phone the card sits under the text and each icon sits above its title.',\n  schema,\n  defaults: {\n    title: 'Name the place or the idea',\n    body: 'Say in two sentences how the service works and what the customer does first.\\n\\nSay in two or three sentences where it is, what is near and what the customer can do there.\\n\\nSay in one sentence how to reach you with a question.',\n    items: [\n      { icon: 'clock', title: 'Name the first perk', description: 'Say what the customer gets and what they no longer have to do, in a sentence.' },\n      { icon: 'globe', title: 'Name the second perk', description: 'Say what the customer gets and what they no longer have to do, in a sentence.' },\n      { icon: 'heart', title: 'Name the third perk', description: 'Say what the customer gets and what they no longer have to do, in a sentence.' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/content-split-text/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/content-split-text/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Container, Icon, 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 ContentSplitText({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id} className=\"!py-12 @4xl:!py-16\">\n      <Container className=\"grid items-start gap-3 @4xl:grid-cols-2 @4xl:gap-20 @4xl:max-w-none\">\n        <div>\n          <Heading id={id} title={props.title} />\n          <Text path={['body']} value={props.body} as=\"p\" multiline className=\"mt-6 whitespace-pre-line text-kh-body leading-relaxed text-kh-ink-2\" />\n        </div>\n        <ul className=\"grid gap-8 rounded-kh-lg border border-kh-line bg-kh-surface px-8 py-6 @4xl:gap-8 @4xl:px-10 @4xl:py-10\">\n          {props.items.map((item, i) => (\n            <li key={i} className=\"grid gap-4 @4xl:grid-cols-[3rem_1fr] @4xl:gap-x-5\">\n              <span className=\"text-kh-accent-ink\">\n                <Icon name={item.icon} className=\"size-8\" />\n              </span>\n              <div className=\"min-w-0\">\n                <Text path={['items', i, 'title']} value={item.title} as=\"p\" className=\"text-kh-body font-semibold\" />\n                <Text path={['items', i, 'description']} value={item.description} as=\"p\" className=\"mt-1.5 text-kh-small text-kh-muted\" />\n              </div>\n            </li>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(ContentSplitText);\n"
    }
  ]
}
