You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I am building an open-source component library (rcopy.dev) on top of react-aria-components and the main idea of the project is to have all components mobile friendly.
All components that have an overlay (popover/menu...) will have a draggable sheet as an overlay on mobile.
But as i saw there's no pointer events exposed for Modal component, what's the correct approach to do this (adding event listeners with useEvent from @react-aria/utils?
I didn't want to drop down to the related hook, as this component library will be copy paste and the code shouldnt be complicated.
I also saw the example in the docs that uses framer motion, it has low performance on mobile so i am building it from scratch based on Vaul project code (which is using radix under the hood).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I am building an open-source component library (rcopy.dev) on top of react-aria-components and the main idea of the project is to have all components mobile friendly.
All components that have an overlay (popover/menu...) will have a draggable sheet as an overlay on mobile.
But as i saw there's no pointer events exposed for Modal component, what's the correct approach to do this (adding event listeners with
useEvent
from@react-aria/utils
?I didn't want to drop down to the related hook, as this component library will be copy paste and the code shouldnt be complicated.
I also saw the example in the docs that uses framer motion, it has low performance on mobile so i am building it from scratch based on
Vaul
project code (which is using radix under the hood).Beta Was this translation helpful? Give feedback.
All reactions