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

Function Pressable

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

Source from the content-addressed store, hash-verified

3885
3886 describe('event bubbling', () => {
3887 function Pressable(props) {
3888 let {pressProps} = usePress(props);
3889 return (
3890 <div {...pressProps} data-testid={props['data-testid']}>
3891 {props.children}
3892 </div>
3893 );
3894 }
3895
3896 describe.each`
3897 type | prepare | actions

Callers

nothing calls this directly

Calls 1

usePressFunction · 0.90

Tested by

no test coverage detected