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

Function Item

packages/react-aria/test/focus/FocusScopeOwnerDocument.test.js:322–328  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

320 }
321
322 function Item(props) {
323 let focusManager = useFocusManager();
324 let onClick = () => {
325 focusManager.focusNext();
326 };
327 // eslint-disable-next-line jsx-a11y/click-events-have-key-events
328 return <div {...props} tabIndex={-1} role="button" onClick={onClick} />;
329 }
330
331 render(<Test />);

Callers

nothing calls this directly

Calls 1

useFocusManagerFunction · 0.90

Tested by

no test coverage detected