react-spectrum
react-spectrum copied to clipboard
Framework agnostic aria tools
🙋 Feature Request
React aria has a lot of code that ensures that it works correctly across different browsers. I think it will be very helpful to make this code available as a standalone library, so they could be used not only with react but with other frameworks or vanilla js as well.
For example, I was looking into the usePreventScroll
hook source code. And it uses an internal function to prevent scroll in mobile safari (preventScrollMobileSafari
). The preventScrollMobileSafari
does not have any dependencies in react and can save a lot of time for developers, who does not work with react, but have the same issue.