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

Function Item

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

useFocusManagerFunction · 0.90

Tested by

no test coverage detected