MCPcopy Index your code
hub / github.com/adobe/react-spectrum / useFocusManager

Function useFocusManager

packages/react-aria/src/focus/FocusScope.tsx:216–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 * a FocusScope, e.g. in response to user events like keyboard navigation.
215 */
216export function useFocusManager(): FocusManager | undefined {
217 return useContext(FocusContext)?.focusManager;
218}
219
220function createFocusManagerForScope(scopeRef: React.RefObject<Element[] | null>): FocusManager {
221 return {

Callers 4

ItemFunction · 0.90
FocusScope.test.jsFile · 0.90
ItemFunction · 0.90

Calls

no outgoing calls

Tested by 2

ItemFunction · 0.72
ItemFunction · 0.72