{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "corner-hint",
  "title": "Corner Hint",
  "description": "A glass hint in the bottom corner that grows in as it fades in, with a message that can replace it for a moment; announced politely to screen readers. No dependencies.",
  "files": [
    {
      "path": "registry/mewo/ui/corner-hint.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface CornerHintProps extends React.ComponentProps<\"p\"> {\n  /** The hint, on wide and narrow screens. */\n  hint?: { desktop: string; mobile: string }\n  /** Replaces the hint while set (e.g. the name of a picked object), and shows even when `show` is false. */\n  message?: string\n  /** Whether the hint shows. */\n  show?: boolean\n}\n\n/**\n * A glass hint in the bottom corner at the inline end (full width on phones): it grows in from a little larger\n * as it fades in, and a message can replace it for a moment. Announced politely to screen readers.\n */\nexport function CornerHint({\n  hint = { desktop: \"Select an object to read about it.\", mobile: \"Tap an object to read about it.\" },\n  message,\n  show = true,\n  className,\n  ...props\n}: CornerHintProps) {\n  return (\n    <p\n      role=\"status\"\n      data-slot=\"corner-hint\"\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        \"pointer-events-none fixed z-[100] end-[calc(var(--story-u)*2)] bottom-[calc(var(--story-u)*2)] rounded-lg py-[calc(var(--story-u)*2.1)] ps-[calc(var(--story-u)*1.8)] pe-[calc(var(--story-u)*2.2)] text-[length:calc(var(--story-u)*1.4)] leading-[1.4] tracking-[-0.01em] whitespace-nowrap text-muted-foreground\",\n        \"bg-[rgba(186,186,186,0.2)] backdrop-blur-[12px]\",\n        \"[transition:opacity_0.5s_ease,scale_0.6s_cubic-bezier(0.215,0.61,0.355,1)] motion-reduce:transition-none\",\n        \"max-[900px]:start-[calc(var(--story-u)*1.5)] max-[900px]:end-[calc(var(--story-u)*1.5)] max-[900px]:p-[calc(var(--story-u)*1.6)] max-[900px]:text-center\",\n        message || show ? \"scale-100 opacity-100\" : \"scale-[1.4] opacity-0\",\n        className\n      )}\n      {...props}\n    >\n      {message || (\n        <>\n          <span className=\"max-[900px]:hidden\">{hint.desktop}</span>\n          <span className=\"hidden max-[900px]:inline\">{hint.mobile}</span>\n        </>\n      )}\n    </p>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "added": "2026-10-27",
    "unlisted": true
  },
  "categories": [
    "text"
  ],
  "type": "registry:ui"
}