{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "picture-credit",
  "title": "Picture Credit",
  "description": "A picture's credit, centred: its name underlined and linked, then place and date, over a small grey line. No dependencies.",
  "files": [
    {
      "path": "registry/mewo/ui/picture-credit.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface PictureCreditProps extends Omit<React.ComponentProps<\"p\">, \"title\"> {\n  /** The picture's name, underlined (linked when href is set). */\n  title?: string\n  /** Place and date, after the name. */\n  by?: string\n  /** The small grey line: where it is kept, the photograph's credit and licence. */\n  line?: string\n  /** Where the name links (it opens in a new tab). */\n  href?: string\n}\n\n/** A picture's credit, centred: its name underlined and linked, then place and date, over a small grey line. */\nexport function PictureCredit({\n  title = \"An old vessel\",\n  by = \"c. 3000 BCE\",\n  line = \"A museum somewhere. Placeholder photograph.\",\n  href,\n  className,\n  ...props\n}: PictureCreditProps) {\n  return (\n    <p data-slot=\"picture-credit\" className={cn(\"[--story-u:min(2.6667cqw,12px)] min-[901px]:[--story-u:0.625cqw] min-[901px]:@max-[900px]:[--story-u:min(2.6667cqw,12px)] text-[length:var(--story-u)]\", \"grid gap-[calc(var(--story-u)*0.5)] text-center\", className)} {...props}>\n      <span className=\"text-[length:max(12px,calc(var(--story-u)*1.2))] leading-[1.2] max-[900px]:text-[length:calc(var(--story-u)*1)]\">\n        <a href={href} target=\"_blank\" rel=\"noopener noreferrer\" className=\"pointer-events-auto\">\n          <em className=\"not-italic underline underline-offset-[0.15em]\">{title}</em>\n        </a>\n        , {by}\n      </span>\n      <span className=\"text-[10px] leading-[1.25] text-muted-foreground\">{line}</span>\n    </p>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "added": "2026-10-27",
    "unlisted": true
  },
  "categories": [
    "text"
  ],
  "type": "registry:ui"
}