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

Function Example

packages/react-aria/test/interactions/useFocus.test.js:19–22  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

17import {useFocus} from '../../src/interactions/useFocus';
18
19function Example(props) {
20 let {focusProps} = useFocus(props);
21 return (
22 <div tabIndex={-1} {...focusProps} data-testid="example">
23 {props.children}
24 </div>
25 );

Callers

nothing calls this directly

Calls 1

useFocusFunction · 0.90

Tested by

no test coverage detected