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

Function Pressable

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

Source from the content-addressed store, hash-verified

3904
3905 describe('event bubbling', () => {
3906 function Pressable(props) {
3907 let {pressProps} = usePress(props);
3908 return (
3909 <div {...pressProps} data-testid={props['data-testid']}>
3910 {props.children}
3911 </div>
3912 );
3913 }
3914
3915 describe.each`
3916 type | prepare | actions

Callers

nothing calls this directly

Calls 1

usePressFunction · 0.90

Tested by

no test coverage detected