MCPcopy Create free account
hub / github.com/adobe/react-spectrum / toggle

Function toggle

packages/react-stately/src/menu/useMenuTriggerState.ts:103–106  ·  view source on GitHub ↗
(focusStrategy: FocusStrategy | null = null)

Source from the content-addressed store, hash-verified

101 overlayTriggerState.open();
102 },
103 toggle(focusStrategy: FocusStrategy | null = null) {
104 setFocusStrategy(focusStrategy);
105 overlayTriggerState.toggle();
106 },
107 close() {
108 closeAll();
109 },

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected