{
  "component": {
    "id": "dropdown-menu",
    "name": "Dropdown menu",
    "tier": "free",
    "exampleId": "dropdown-menu",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/dropdown-menu-demo.tsx",
    "exportName": "DropdownMenuDemo",
    "sha256": "ee6b79871dc2a7a6d68fc4a3e100045d4b5008d401966a965aa527a751f4d34f",
    "helperImports": [],
    "directComponentImports": [
      "dropdown-menu"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add https://tidalui.com/r/dropdown-menu.json",
    "registryUrl": "https://tidalui.com/r/dropdown-menu.json",
    "access": "free",
    "sourceDelivery": "public-registry",
    "requiresAuthorization": false,
    "tokenSource": "none",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "https://tidalui.com/r/dropdown-menu.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/dropdown-menu.json",
      "registryUrl": "https://tidalui.com/r/dropdown-menu.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/dropdown-menu.tsx",
    "exports": [
      "TidalDropdownMenu",
      "TidalDropdownMenuCheckboxItem",
      "TidalDropdownMenuContent",
      "TidalDropdownMenuItem",
      "TidalDropdownMenuLabel",
      "TidalDropdownMenuRadioGroup",
      "TidalDropdownMenuRadioItem",
      "TidalDropdownMenuSeparator",
      "TidalDropdownMenuSub",
      "TidalDropdownMenuSubContent",
      "TidalDropdownMenuSubTrigger",
      "TidalDropdownMenuTrigger"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/dropdown-menu.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-dropdown-menu@2.2.1",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "dropdown-menu"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/dropdown-menu.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/dropdown-menu.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/dropdown-menu-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { Archive, ChevronDown, Copy, Ellipsis, LayoutTemplate, Undo2 } from \"lucide-react\";\n\nimport { TidalDropdownMenu, TidalDropdownMenuCheckboxItem, TidalDropdownMenuContent, TidalDropdownMenuItem, TidalDropdownMenuLabel, TidalDropdownMenuRadioGroup, TidalDropdownMenuRadioItem, TidalDropdownMenuSeparator, TidalDropdownMenuSub, TidalDropdownMenuSubContent, TidalDropdownMenuSubTrigger, TidalDropdownMenuTrigger } from \"./components/ui/dropdown-menu\";\n\nimport \"./components/ui/dropdown-menu.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .menu-demo-specimen {\\n  display: flex;\\n  flex-direction: column;\\n  align-items: center;\\n  justify-content: flex-start;\\n  gap: 12px;\\n  width: 100%;\\n  min-height: 330px;\\n  padding: 28px 24px;\\n  color: var(--t-ink);\\n}\\n.tidal-scope .menu-demo-toolbar {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: center;\\n}\\n.tidal-scope .menu-demo-trigger-chevron {\\n  transition: rotate 240ms var(--t-ease-out);\\n}\\n.tidal-scope .menu-demo-feedback {\\n  max-width: 260px;\\n  min-height: 17px;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  text-align: center;\\n}\\n@media (max-width: 600px) {\\n  .tidal-scope .menu-demo-specimen {\\n    min-height: 300px;\\n    padding: 24px 16px;\\n  }\\n}\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .menu-demo-trigger-chevron {\\n    transition: none;\\n  }\\n}\";\n\nexport function DropdownMenuDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const [open, setOpen] = useState(false);\n  const [duplicateCount, setDuplicateCount] = useState(1);\n  const [pinned, setPinned] = useState(false);\n  const [view, setView] = useState(\"overview\");\n  const [archived, setArchived] = useState(false);\n  const [message, setMessage] = useState(\"\");\n\n  return (\n    <section className=\"menu-demo-specimen\" aria-label=\"Dropdown menu example\">\n      <div className=\"menu-demo-toolbar\">\n        <TidalDropdownMenu theme={theme} open={open} onOpenChange={setOpen}>\n          <TidalDropdownMenuTrigger aria-label=\"Note actions\">\n            <Ellipsis size={17} aria-hidden=\"true\" />\n            <span>Actions</span>\n            <ChevronDown\n              className=\"menu-demo-trigger-chevron\"\n              size={14}\n              aria-hidden=\"true\"\n            />\n          </TidalDropdownMenuTrigger>\n          <TidalDropdownMenuContent align=\"center\" aria-label=\"Note actions\">\n            <TidalDropdownMenuLabel>NOTE ACTIONS</TidalDropdownMenuLabel>\n            <TidalDropdownMenuItem\n              disabled={archived || duplicateCount >= 9}\n              onSelect={() => {\n                setDuplicateCount((count) => count + 1);\n                setMessage(\"A local note duplicate is ready in this preview.\");\n              }}\n            >\n              <Copy size={16} aria-hidden=\"true\" />\n              <span className=\"tidal-menu-item-copy\">Duplicate note</span>\n            </TidalDropdownMenuItem>\n            <TidalDropdownMenuCheckboxItem\n              disabled={archived}\n              checked={pinned}\n              onSelect={(event) => event.preventDefault()}\n              onCheckedChange={(checked) => {\n                setPinned(checked === true);\n                setMessage(\n                  checked\n                    ? \"Note pinned in this preview.\"\n                    : \"Note unpinned in this preview.\",\n                );\n              }}\n            >\n              Pin note\n            </TidalDropdownMenuCheckboxItem>\n            <TidalDropdownMenuSub>\n              <TidalDropdownMenuSubTrigger disabled={archived}>\n                <LayoutTemplate size={16} aria-hidden=\"true\" />\n                <span className=\"tidal-menu-item-copy\">\n                  Reading layout\n                  <small>{view === \"reading\" ? \"Reading\" : \"Overview\"}</small>\n                </span>\n              </TidalDropdownMenuSubTrigger>\n              <TidalDropdownMenuSubContent aria-label=\"Reading layout\">\n                <TidalDropdownMenuLabel>LAYOUT</TidalDropdownMenuLabel>\n                <TidalDropdownMenuRadioGroup\n                  value={view}\n                  onValueChange={(next) => {\n                    setView(next);\n                    setMessage(\n                      `${next === \"reading\" ? \"Reading\" : \"Overview\"} layout selected.`,\n                    );\n                  }}\n                >\n                  <TidalDropdownMenuRadioItem\n                    value=\"overview\"\n                    onSelect={(event) => event.preventDefault()}\n                  >\n                    Overview\n                  </TidalDropdownMenuRadioItem>\n                  <TidalDropdownMenuRadioItem\n                    value=\"reading\"\n                    onSelect={(event) => event.preventDefault()}\n                  >\n                    Reading\n                  </TidalDropdownMenuRadioItem>\n                </TidalDropdownMenuRadioGroup>\n              </TidalDropdownMenuSubContent>\n            </TidalDropdownMenuSub>\n            <TidalDropdownMenuSeparator />\n            <TidalDropdownMenuItem\n              destructive={!archived}\n              onSelect={() => {\n                setArchived((value) => !value);\n                setMessage(\n                  archived\n                    ? \"Note restored in this preview.\"\n                    : \"Note archived in this preview.\",\n                );\n              }}\n            >\n              {archived ? (\n                <Undo2 size={16} aria-hidden=\"true\" />\n              ) : (\n                <Archive size={16} aria-hidden=\"true\" />\n              )}\n              <span>{archived ? \"Restore note\" : \"Archive note\"}</span>\n            </TidalDropdownMenuItem>\n          </TidalDropdownMenuContent>\n        </TidalDropdownMenu>\n      </div>\n      <p className=\"menu-demo-feedback\" role=\"status\" aria-live=\"polite\">\n        {message}\n      </p>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <DropdownMenuDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/dropdown-menu.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setOpen",
      "proposalCanBeRejected": false
    },
    {
      "prop": "disabled",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setArchived",
      "proposalCanBeRejected": false
    },
    {
      "prop": "checked",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setPinned",
      "proposalCanBeRejected": false
    },
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"overview\"",
      "setter": "setView",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCheckedChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOpenChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSelect",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Verify focus returns to the invoking control after dismissal.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "present-local"
  },
  "exceptions": []
}
