Is it possible to import react-aria's PressEvent?

227 Views Asked by At

The react-aria docs describe a PressEvent and its properties. However I have not managed to find it anywhere in @react-aria node_modules directory to import it into my .tsx component. Has anyone managed this?

1

There are 1 best solutions below

0
On

You can import them like import type { PressEvent } from '@react-types/shared';