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

Function Pressable

packages/react-aria/test/interactions/usePress.test.js:3845–3852  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3843
3844 describe('event bubbling', () => {
3845 function Pressable(props) {
3846 let {pressProps} = usePress(props);
3847 return (
3848 <div {...pressProps} data-testid={props['data-testid']}>
3849 {props.children}
3850 </div>
3851 );
3852 }
3853
3854 describe.each`
3855 type | prepare | actions

Callers

nothing calls this directly

Calls 1

usePressFunction · 0.90

Tested by

no test coverage detected