{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-placard",
  "title": "RetroPlacard",
  "description": "Mac OS 9 window placard: the raised status strip at a window's bottom-left, with a RetroPlacardButton pop-up variant.",
  "registryDependencies": [
    "https://nostalgia-ui.com/r/nostalgia-theme.json"
  ],
  "files": [
    {
      "path": "registry/new-york/ui/retro-placard.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/*\n * Placards sit at the bottom-left of a document window, sharing the\n * 16px-tall row with the horizontal scroll bar. They are a raised gray\n * strip holding Geneva 9px status text, or a pop-up (PlacardButton).\n */\n\nconst placardBase = [\n  \"inline-flex h-[16px] shrink-0 items-center gap-[4px] px-[6px]\",\n  \"border border-os9-black bg-os9-gray-300 text-os9-black\",\n  \"shadow-[inset_1px_1px_0_var(--os9-white),inset_-1px_-1px_0_var(--os9-gray-700)]\",\n  \"font-[family-name:var(--os9-font-sans)] text-[9px] leading-none whitespace-nowrap\",\n  \"select-none\",\n]\n\n/* ------------------------------------------------------------------ */\n/*  RetroPlacard                                                       */\n/* ------------------------------------------------------------------ */\n\ntype RetroPlacardProps = React.HTMLAttributes<HTMLDivElement>\n\nconst RetroPlacard = React.forwardRef<HTMLDivElement, RetroPlacardProps>(\n  function RetroPlacard({ className, ...props }, ref) {\n    return (\n      <div\n        ref={ref}\n        role=\"status\"\n        className={cn(placardBase, \"cursor-default overflow-hidden\", className)}\n        {...props}\n      />\n    )\n  }\n)\nRetroPlacard.displayName = \"RetroPlacard\"\n\n/* ------------------------------------------------------------------ */\n/*  RetroPlacardButton                                                 */\n/* ------------------------------------------------------------------ */\n\ninterface RetroPlacardButtonProps\n  extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n  /**\n   * Draws the pop-up arrow at the right edge. Defaults to true — a\n   * placard button is almost always a pop-up (zoom level, page, etc.).\n   */\n  popup?: boolean\n}\n\n/**\n * Clickable placard (a pop-up). Forwards all props, so it works as a menu\n * trigger's element: `<RetroDropdownMenuTrigger render={<RetroPlacardButton />}>…`.\n * The trigger's `data-open` keeps the pressed look while the menu is open.\n */\nconst RetroPlacardButton = React.forwardRef<\n  HTMLButtonElement,\n  RetroPlacardButtonProps\n>(function RetroPlacardButton(\n  { className, popup = true, children, type = \"button\", ...props },\n  ref\n) {\n  return (\n    <button\n      ref={ref}\n      type={type}\n      className={cn(\n        placardBase,\n        \"cursor-pointer transition-none\",\n        \"active:bg-os9-gray-700 active:text-os9-white\",\n        \"active:shadow-[inset_1px_1px_0_var(--os9-gray-800),inset_-1px_-1px_0_var(--os9-gray-500)]\",\n        \"data-open:bg-os9-gray-700 data-open:text-os9-white\",\n        \"data-open:shadow-[inset_1px_1px_0_var(--os9-gray-800),inset_-1px_-1px_0_var(--os9-gray-500)]\",\n        \"focus-visible:os9-focus-ring\",\n        \"disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-os9-gray-600\",\n        className\n      )}\n      {...props}\n    >\n      <span className=\"truncate\">{children}</span>\n      {popup ? (\n        <svg\n          width=\"7\"\n          height=\"4\"\n          viewBox=\"0 0 7 4\"\n          aria-hidden=\"true\"\n          className=\"ml-auto shrink-0\"\n        >\n          <path d=\"M0 0H7L3.5 4Z\" fill=\"currentColor\" />\n        </svg>\n      ) : null}\n    </button>\n  )\n})\nRetroPlacardButton.displayName = \"RetroPlacardButton\"\n\nexport { RetroPlacard, RetroPlacardButton }\nexport type { RetroPlacardProps, RetroPlacardButtonProps }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}