{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "docs-related",
  "type": "registry:block",
  "title": "Docs, related links",
  "description": "A titled row of link chips: the blocks a page uses, related components.",
  "categories": [
    "docs"
  ],
  "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"
  ],
  "files": [
    {
      "path": "src/blocks/docs-related/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/docs-related/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  title: t(60),\n  description: t(200),\n  links: z.array(link).min(1).max(12),\n});\n\nexport const spec = defineSpec({\n  type: 'docs-related',\n  aliases: ['docs/related'],\n  name: 'Docs, related links',\n  category: 'docs',\n  role: 'body',\n  description: 'A titled row of link chips: the blocks a page uses, related components.',\n  schema,\n  defaults: {\n    title: 'Name the related set',\n    description: '',\n    links: [\n      { label: 'First link', href: '#pricing-tiers' },\n      { label: 'Second link', href: '#pricing-comparison' },\n      { label: 'Third link', href: '#faq-accordion' },\n      { label: 'Fourth link', href: '#cta-banner' },\n      { label: 'Fifth link', href: '#header' },\n      { label: 'Sixth link', href: '#footer' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/docs-related/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/docs-related/index.tsx",
      "content": "import { useId } from 'react';\nimport { ArrowUpRight } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { Container, Section, SectionHeader, Gate } 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 DocsRelated({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id} className=\"py-10 @3xl:py-14\">\n      <Container>\n        <SectionHeader id={id} title={props.title} description={props.description} />\n        <ul className=\"mt-6 flex flex-wrap gap-3\">\n          {props.links.map((l, i) => (\n            <Gate key={i} label={l.label}>\n            <li>\n              <a\n                href={safeHref(l.href)}\n                className=\"group inline-flex min-h-11 items-center gap-2 rounded-kh-pill border border-kh-line-strong bg-kh-surface px-4 text-kh-small font-medium transition-colors duration-(--kh-dur) hover:bg-kh-surface-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--kh-focus)\"\n              >\n                <Text path={['links', i, 'label']} value={l.label} as=\"span\" />\n                <ArrowUpRight aria-hidden className=\"size-3.5 text-kh-muted transition-colors duration-(--kh-dur) group-hover:text-kh-ink\" />\n              </a>\n            </li>\n            </Gate>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(DocsRelated);\n"
    }
  ]
}
