{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "content-card",
  "type": "registry:item",
  "title": "Content Card",
  "description": "A card: a picture, a heading, text and a footer, each optional. With `href` the heading is a link and the whole card is the target (one link for screen readers and the keyboard, not one per part), and buttons in the footer still work on their own.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "display"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/content-card.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/content-card.js",
      "content": "// Generated by zubra from content-card.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\nimport { hasSlot } from '@zubra/runtime';\n\nexport const tag = \"content-card\";\n\nexport default $define(tag, {\n  props: {\n    \"heading\": { attribute: \"heading\", default: \"\", required: false },\n    \"href\": { attribute: \"href\", default: \"\", required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"default\", \"footer\", \"heading\", \"media\"],\n  events: [],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (content-card) to ([data-zb-slotted=\\\"content-card\\\"]) {\\n  :scope { display: block; }\\n  article { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border, #e4e4e7); border-radius: var(--radius, 0.625rem); background: var(--card, #fff); color: var(--card-foreground, #18181b); box-shadow: 0 1px 2px #0000000d; transition: box-shadow var(--duration-normal, 200ms), border-color var(--duration-normal, 200ms); }\\n  .card-linked:hover { border-color: color-mix(in oklab, var(--border, #e4e4e7) 50%, var(--foreground, #18181b)); box-shadow: 0 6px 20px #00000014; }\\n  .card-linked:focus-within { outline: 2px solid var(--ring, #a1a1aa); outline-offset: 2px; }\\n  .card-media > * { display: block; width: 100%; height: auto; }\\n  .card-body { display: grid; gap: 0.5rem; padding: 1.1rem 1.2rem; flex: 1; align-content: start; }\\n  h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }\\n  h3 a { color: inherit; text-decoration: none; }\\n  h3 a:focus-visible { outline: none; }\\n  /* The heading's link covers the card, so a click anywhere opens it. */\\n  .card-linked h3 a::after { content: \\\"\\\"; position: absolute; inset: 0; }\\n  .card-text { color: color-mix(in oklab, var(--muted-foreground, #71717a) 75%, var(--foreground, #18181b)); }\\n  footer { position: relative; font-size: 0.875rem; color: color-mix(in oklab, var(--muted-foreground, #71717a) 75%, var(--foreground, #18181b)); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.8rem 1.2rem; border-top: 1px solid var(--border, #e4e4e7); }\\n  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; } }\\n}\\n}\\n\",\n  template: \"\\n  <article>\\n    <!--[--><!--]-->\\n    <div class=\\\"card-body\\\">\\n      \\n      <h3><a><!--[--><!--]--></a></h3>\\n      <div class=\\\"card-text\\\"><!--[--><!--]--></div>\\n    </div>\\n    <!--[--><!--]-->\\n  </article>\\n\",\n  setup($p, $emit) {\n                                          \n\n  const media = hasSlot('media')\n  const footer = hasSlot('footer')\n    return [\n      { path: [0], toggle: \"card-linked\", value: () => (Boolean($p.href)) },\n      { path: [0, 0], when: () => $r(media), blocks: [{ template: \"<div class=\\\"card-media\\\"><!--[--><!--]--></div>\", parts: () => [{ path: [0, 0], slot: \"media\", fallback: null }] }, null] },\n      { path: [0, 1, 0, 0], attribute: \"href\", url: true, value: () => ($p.href || null) },\n      { path: [0, 1, 0, 0, 0], slot: \"heading\", fallback: { template: \"<!---->\", parts: () => [{ path: [0], anchor: () => $t($p.heading) }] } },\n      { path: [0, 1, 1, 0], slot: \"default\", fallback: null },\n      { path: [0, 2], when: () => $r(footer), blocks: [{ template: \"<footer><!--[--><!--]--></footer>\", parts: () => [{ path: [0, 0], slot: \"footer\", fallback: null }] }, null] },\n    ];\n  },\n});\n"
    }
  ]
}
