{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "corner-wordmark",
  "title": "Corner Wordmark",
  "description": "The name in the top corner, linking back to the start: it fades in once the reader scrolls away, difference-blended over the pictures. No dependencies.",
  "files": [
    {
      "path": "registry/mewo/ui/corner-wordmark.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface CornerWordmarkProps extends React.ComponentProps<\"a\"> {\n  /** Whether it shows (e.g. once the reader has scrolled away from the top). */\n  show?: boolean\n  /** Read after the name by screen readers. */\n  homeLabel?: string\n  /** Called on click in place of following href (e.g. to scroll a story back to its start). */\n  onHome?: () => void\n}\n\n/**\n * The name in the top inline-start corner, linking back to the start. It fades in and out with `show`, and is\n * hidden on phones, where an IntroWordmark stays at the top instead. White and difference-blended, like it.\n */\nexport function CornerWordmark({\n  show = true,\n  homeLabel = \"back to the start\",\n  onHome,\n  href = \"#top\",\n  onClick,\n  className,\n  children = \"Atlas\",\n  ...props\n}: CornerWordmarkProps) {\n  return (\n    <a\n      href={href}\n      data-slot=\"corner-wordmark\"\n      onClick={(e) => {\n        onClick?.(e)\n        if (!onHome || e.defaultPrevented) return\n        e.preventDefault()\n        onHome()\n      }}\n      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)]\", \n        \"fixed top-[calc(var(--story-u)*2)] start-[calc(var(--story-u)*2)] z-[100] font-heading text-[length:calc(var(--story-u)*3.3)] leading-none tracking-[-0.02em] whitespace-nowrap text-white no-underline mix-blend-difference max-[900px]:hidden motion-reduce:transition-none\",\n        show\n          ? \"visible opacity-100 [transition:opacity_0.8s_ease,visibility_0s]\"\n          : \"invisible opacity-0 [transition:opacity_0.8s_ease,visibility_0s_linear_0.8s]\",\n        className\n      )}\n      {...props}\n    >\n      {/* the space sits outside the hidden span: inside it, the accessible name loses it (\"Atlas– back…\") */}\n      {children} <span className=\"sr-only\">– {homeLabel}</span>\n    </a>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "added": "2026-10-27",
    "unlisted": true
  },
  "categories": [
    "text",
    "header"
  ],
  "type": "registry:ui"
}