{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-three-column",
  "type": "registry:block",
  "title": "Name a person",
  "description": "Three columns: star-rated quote cards stacked on the left, the label, heading, lead and one action centred in the middle, more quote cards on the right. Each card has stars with a rating line, the quote, and the person with initials. On a phone the headline comes after the left quotes in one column.",
  "categories": [
    "testimonials"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "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/testimonials-three-column/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-three-column/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, req, t } from '../_shared/schema';\n\nconst quote = z.object({\n  /** Stars filled, as a whole number. */\n  stars: z.enum(['1', '2', '3', '4', '5']),\n  /** The rating line beside the stars. Empty: not drawn. Never invented. */\n  rating: t(30),\n  text: req(280),\n  name: req(60),\n});\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: req(120),\n  description: t(160),\n  action: link,\n  /** The quotes in the left column. */\n  left: z.array(quote).min(1).max(3),\n  /** The quotes in the right column. */\n  right: z.array(quote).min(1).max(3),\n});\n\nconst q = { stars: '5' as const, rating: 'Rating line', text: 'Say what they got.', name: 'Name a person' };\n\nexport const spec = defineSpec({\n  type: 'testimonials-three-column',\n  aliases: ['testimonials/three-column'],\n  sourceRuns: ['rmwj0sz904fa957'],\n  name: 'Testimonials, three columns',\n  category: 'testimonials',\n  role: 'body',\n  description: 'Three columns: star-rated quote cards stacked on the left, the label, heading, lead and one action centred in the middle, more quote cards on the right. Each card has stars with a rating line, the quote, and the person with initials. On a phone the headline comes after the left quotes in one column.',\n  schema,\n  defaults: {\n    eyebrow: 'Section name',\n    title: 'Say what the quotes show',\n    description: 'Say in one line who is speaking.',\n    action: { label: 'Main action', href: '#start' },\n    left: [q, q],\n    right: [q, q],\n  },\n});\n"
    },
    {
      "path": "src/blocks/testimonials-three-column/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-three-column/index.tsx",
      "content": "import { Star } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Opt, Section, Avatar } 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>;\ntype Quote = Props['left'][number];\n\nfunction Card({ q, side, i }: { q: Quote; side: 'left' | 'right'; i: number }) {\n  return (\n    <figure className=\"rounded-kh-lg border border-kh-line bg-kh-surface p-6 shadow-kh-1\">\n      <div className=\"flex items-center gap-3\">\n        <div className=\"flex items-center gap-1 text-kh-warning\" role=\"img\" aria-label={`${q.stars} out of 5 stars`}>\n          {[1, 2, 3, 4, 5].map((n) => (\n            <Star key={n} className={`size-4 ${n <= Number(q.stars) ? '' : 'opacity-30'}`} fill=\"currentColor\" strokeWidth={0} aria-hidden=\"true\" />\n          ))}\n        </div>\n        <Opt path={[side, i, 'rating']} value={q.rating} as=\"span\" className=\"font-kh-mono text-kh-caption text-kh-muted\" placeholder=\"Rating\" />\n      </div>\n      <Text path={[side, i, 'text']} value={q.text} as=\"blockquote\" multiline className=\"mt-4 text-kh-body text-kh-ink\" />\n      <figcaption className=\"mt-6 flex items-center gap-3\">\n        <Avatar name={q.name} className=\"size-10 font-kh-mono font-normal\" />\n        <Text path={[side, i, 'name']} value={q.name} as=\"span\" className=\"text-kh-small text-kh-ink\" />\n      </figcaption>\n    </figure>\n  );\n}\n\n// Quotes left, the headline and action centred, quotes right; on a phone one column with the headline after the left quotes.\nfunction TestimonialsThreeColumn({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id}>\n      <div className=\"px-kh-gutter\">\n        <div className=\"mx-auto grid max-w-kh-page grid-cols-1 gap-10 @5xl:grid-cols-[1fr_1.1fr_1fr] @5xl:items-center @5xl:gap-12\">\n          <div className=\"flex min-w-0 flex-col gap-6\">\n            {props.left.map((q, i) => <Card key={i} q={q} side=\"left\" i={i} />)}\n          </div>\n          <div className=\"flex min-w-0 flex-col items-start gap-6 @5xl:items-center @5xl:text-center\">\n            <Opt path={['eyebrow']} value={props.eyebrow} className=\"font-kh-mono text-kh-caption uppercase tracking-wider text-kh-accent-ink\" placeholder=\"Eyebrow\" />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className=\"font-kh-display text-kh-heading text-kh-ink\" />\n            </div>\n            <Opt path={['description']} value={props.description} multiline className=\"text-kh-lead text-kh-muted\" placeholder=\"Lead\" />\n            <ActionLink path={['action']} value={props.action} size=\"md\" className=\"rounded-kh-pill\" />\n          </div>\n          <div className=\"flex min-w-0 flex-col gap-6\">\n            {props.right.map((q, i) => <Card key={i} q={q} side=\"right\" i={i} />)}\n          </div>\n        </div>\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TestimonialsThreeColumn);\n"
    }
  ]
}
