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

Method focusNext

packages/react-aria/src/focus/FocusScope.tsx:74–74  ·  view source on GitHub ↗

Moves focus to the next focusable or tabbable element in the focus scope.

(opts?: FocusManagerOptions)

Source from the content-addressed store, hash-verified

72export interface FocusManager {
73 /** Moves focus to the next focusable or tabbable element in the focus scope. */
74 focusNext(opts?: FocusManagerOptions): FocusableElement | null;
75 /** Moves focus to the previous focusable or tabbable element in the focus scope. */
76 focusPrevious(opts?: FocusManagerOptions): FocusableElement | null;
77 /** Moves focus to the first focusable or tabbable element in the focus scope. */

Callers 9

onClickFunction · 0.65
onClickFunction · 0.65
onMouseDownFunction · 0.65
onKeyDownFunction · 0.65
useActionGroupFunction · 0.65
useDatePickerGroupFunction · 0.65
onInputFunction · 0.65
useDateSegmentFunction · 0.65

Calls

no outgoing calls

Tested by 3

onClickFunction · 0.52
onClickFunction · 0.52
onMouseDownFunction · 0.52