{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-simple",
  "type": "registry:block",
  "title": "Footer, simple",
  "description": "One quiet row: brand, a few links and a legal line.",
  "categories": [
    "footer"
  ],
  "dependencies": [
    "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",
    "https://ui.klarhimmel.com/r/kit-d-chrome.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/footer-simple/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-simple/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, logo, t, mark } from '../_shared/schema';\n\nconst schema = z.object({\n  brand: t(40),\n  /** The brand mark before the wordmark: SVG paths in currentColor (or an image src), cap-height tall, aria-hidden. */\n  mark,\n  /** A brand mark before the wordmark, as in navbar-simple. */\n  logo,\n  links: z.array(link).max(6),\n  legal: t(120),\n  /** The href of the current page's link, as navbar-simple takes it: that link gets aria-current=\"page\". */\n  current: t(300).optional(),\n});\n\nexport const spec = defineSpec({\n  type: 'footer-simple',\n  aliases: ['footer/simple'],\n  name: 'Footer, simple',\n  category: 'footer',\n  role: 'foot',\n  description: 'One quiet row: brand, a few links and a legal line.',\n  schema,\n  defaults: {\n    brand: 'Brand name',\n    links: [\n      { label: 'First page', href: '#product' },\n      { label: 'Second page', href: '#pricing' },\n      { label: 'Third page', href: '#docs' },\n      { label: 'Fourth page', href: '#contact' },\n    ],\n    legal: '© 0000 Company name. All rights reserved.',\n  },\n});\n"
    },
    {
      "path": "src/blocks/footer-simple/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-simple/index.tsx",
      "content": "// footer-simple as the registry and the block contract know it: the component and its spec (props schema in zod, default content).\n// A page that only renders the footer imports the component alone, '@klarhimmel/ui/blocks/footer-simple/component': no zod in its bundle.\nexport { default } from './component';\nexport { spec } from './spec';\n"
    },
    {
      "path": "src/blocks/footer-simple/component.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-simple/component.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { BrandMark, Container, Gate, Mark } from '../_shared/kit';\nimport { FOCUS, footCurrentClass } from '../_shared/d-chrome-kit';\nimport { cn } from '../../lib/utils';\nimport type { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\ntype Props = z.infer<typeof spec.schema>;\n\nfunction FooterSimple({ props }: BlockProps<Props>) {\n  return (\n    <footer className=\"border-t border-kh-line bg-kh-canvas py-8\">\n      <Container className=\"flex flex-col items-start gap-4 @3xl:flex-row @3xl:items-center @3xl:justify-between @3xl:gap-8\">\n        <div className=\"flex items-center gap-2\">\n          <BrandMark path={['logo']} logo={props.logo} />\n          <p className=\"flex items-center gap-(--kh-mark-gap) text-kh-heading font-semibold tracking-tight\"><Mark mark={props.mark} /><Text path={['brand']} value={props.brand} as=\"span\" /></p>\n        </div>\n        <nav aria-label=\"Footer\">\n          <ul className=\"-mx-3 flex flex-wrap\">\n            {props.links.map((l, i) => (\n              <Gate key={i} label={l.label}>\n              <li>\n                <a href={safeHref(l.href)} aria-current={props.current && l.href === props.current ? 'page' : undefined} className={cn('inline-flex min-h-11 items-center rounded-kh px-3 text-kh-small text-kh-muted transition-colors hover:text-kh-ink', props.current && l.href === props.current && footCurrentClass, FOCUS)}>\n                  <Text path={['links', i, 'label']} value={l.label} as=\"span\" />\n                </a>\n              </li>\n              </Gate>\n            ))}\n          </ul>\n        </nav>\n        <Text path={['legal']} value={props.legal} as=\"p\" className=\"text-kh-caption text-kh-muted\" />\n      </Container>\n    </footer>\n  );\n}\n\nexport default withHeadingLevel(FooterSimple);\n"
    }
  ]
}
