Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ useMenuContext
Function
useMenuContext
packages/@adobe/react-spectrum/src/menu/context.ts:41–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
export
const
MenuContext = React.createContext<MenuContextValue>({});
40
41
export
function
useMenuContext(): MenuContextValue {
42
return
useContext(MenuContext);
43
}
44
45
export
interface
SubmenuTriggerContextValue
46
extends
Callers
1
MenuItem
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected