{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "73:224"
  },
  "stories": [
    {
      "id": "figma-2127-1964",
      "name": "Menuitem / Variant=Default, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1964",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1963",
      "name": "Menuitem / Variant=Default, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1963",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1961",
      "name": "Menuitem / Variant=Default, State=Destructive, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1961",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1959",
      "name": "Menuitem / Variant=Hover, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1959",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1956",
      "name": "Menuitem / Variant=Hover, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1956",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1957",
      "name": "Menuitem / Variant=Hover, State=Destructive, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1957",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1962",
      "name": "Menuitem / Variant=Default, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1962",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1955",
      "name": "Menuitem / Variant=Default, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1955",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1960",
      "name": "Menuitem / Variant=Default, State=Destructive, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1960",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1958",
      "name": "Menuitem / Variant=Hover, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1958",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1953",
      "name": "Menuitem / Variant=Hover, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1953",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2127-1954",
      "name": "Menuitem / Variant=Hover, State=Destructive, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2127:1954",
        "part": "2127:1965"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2128-2306",
      "name": "Context-menu-label / Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2128:2306",
        "part": "2128:2308"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2128-2307",
      "name": "Context-menu-label / Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2128:2307",
        "part": "2128:2308"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "source-command-versus-setting",
      "expected": "All exported wrappers retain exact source types. Menu Item uses div role=menuitem, CheckboxItem role=menuitemcheckbox with boolean checked/defaultChecked and cancellable onCheckedChange, RadioGroup uses role=group with any value/defaultValue and cancellable onValueChange; RadioItem uses menuitemradio. Item closeOnClick defaults true, but CheckboxItem and RadioItem closeOnClick default false in Base UI1.9. Command onClick is the native React/Base UI synthetic handler, not an onValueChange. Its event.preventBaseUIHandler() can prevent remaining internal primitive handling such as default closing; this is distinct from callback eventDetails.cancel() on Root or setting changes. Source useButton makes disabled items focusable in the composite while blocking activation; do not promise they are skipped by arrows. Labels/Groups/Separators supply native primitive relations, and Shortcut is only displayed text: it registers no shortcut. SubmenuRoot/Trigger/Content form an independently owned child menu; Root closeParentOnEsc=false normally limits Escape to the child, while context-menu nested Escape follows its specialized source policy. Canceled callbacks preserve the relevant open/checked/radio state; controlled props remain authoritative. onItemHighlighted reports actual element|undefined and reason/label details. Root open transitions, onOpenChangeComplete and externally deferred unmount are distinct. Positioning, pointer safe zones, typeahead, focus management and automatic sibling closing belong to the primitive."
    },
    {
      "id": "menu-ownership-keyboard-and-submenu",
      "expected": "Native trigger Enter/Space or supported opening arrows enter the menu. Within a vertical menu Up/Down, Home/End and label typeahead highlight items; disabled entries may be focused but cannot activate. Enter/Space activate an enabled command or setting. Focus/highlight is not a command commit. Right opens an appropriate submenu and Left returns according to source direction/orientation. Escape dismisses the applicable menu level unless the source change callback is canceled, normally returning to its owning trigger; an outside press/focus transition follows the actual modality and finalFocus policy rather than a universal focus jump. Tab follows the primitive dismissal/focus-manager policy and never becomes a Dialog-style fabricated trap. Menubar parent keyboard navigation is separate from child vertical navigation. Essential instructions and command alternatives stay visible outside hover/long-press alone."
    },
    {
      "id": "source-root-specific-entry",
      "expected": "ContextMenu is a Menu composition whose default Trigger is a div responding to contextmenu and touch long press500ms, with movement/cancel handling. It does not add a tab stop or an explicit keydown shortcut. This reference deliberately renders a named section as the contextual surface and supplies a visible DropdownMenu Actions button exposing equivalent commands and every checkbox/radio setting independently. It does not register a ContextMenu/Shift+F10 shortcut; on the tested browser/platform Shift+F10 did not generate the required contextmenu event. No extra obligatory surface tab stop is added. Ordinary left click on the surface is not an action. ContextRoot excludes modal/triggerId/handle props from its public inherited surface; do not claim they are accepted. closeParentOnEsc is deprecated/no effect. Content defaults right/start, alignOffset4, sideOffset0."
    },
    {
      "id": "concrete-owned-menu-semantics",
      "html": "accessibility.html"
    }
  ]
}
