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

Function Item

packages/react-aria/test/focus/FocusScope.test.js:1052–1058  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1050 }
1051
1052 function Item(props) {
1053 let focusManager = useFocusManager();
1054 let onClick = () => {
1055 focusManager.focusNext();
1056 };
1057 // eslint-disable-next-line jsx-a11y/click-events-have-key-events
1058 return <div {...props} tabIndex={-1} role="button" onClick={onClick} />;
1059 }
1060
1061 let {getByTestId} = render(<Test />);

Callers

nothing calls this directly

Calls 1

useFocusManagerFunction · 0.90

Tested by

no test coverage detected