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

Function Example

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

useKeyboardFunction · 0.90

Tested by

no test coverage detected