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

Function useFocusManager

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

Source from the content-addressed store, hash-verified

231 * a FocusScope, e.g. in response to user events like keyboard navigation.
232 */
233export function useFocusManager(): FocusManager | undefined {
234 return useContext(FocusContext)?.focusManager;
235}
236
237function createFocusManagerForScope(scopeRef: React.RefObject<Element[] | null>): FocusManager {
238 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