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

Function Example

packages/react-aria/test/interactions/useKeyboard.test.js:18–21  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

16import userEvent from '@testing-library/user-event';
17
18function Example(props) {
19 let {keyboardProps} = useKeyboard(props);
20 return (
21 <div tabIndex={-1} {...keyboardProps} data-testid="example">
22 {props.children}
23 </div>
24 );

Callers

nothing calls this directly

Calls 1

useKeyboardFunction · 0.90

Tested by

no test coverage detected