react-useportal
react-useportal copied to clipboard
🌀 React hook for Portals
*** ☝️ **Important announcement:** Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! [Find out how to migrate to Snyk and more at...
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. Commits 6370e90 Mark version 5.7.4 fbc15b1 More rigorously check surrogate pairs in regexp validator See full diff in compare view [](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot...
Hi, I love this hook! Works well in most cases for things like tooltips. I've found that if many instances of this hook are created at once (.e.g 50 or...
I am using simple implementation of the `usePortal` and I was wondering if it possible to implement option with `onFocus` event. At moment usePortal only use onClick event that bind...
Just a suggestion based upon a gotcha I encountered. When using SSR you get 'document is not defined' (since document is client side only). I modified your example to remedy...
Would you consider adding support for className? e.g. ```jsx My modal component ``` Or if this API is not desired, then I could adjust the PR to be like this...
1. Styling the Portal directly with props ```js const useModal = () => { const { isOpen, togglePortal, closePortal, Portal } = usePortal() const Modal = useCallback(({ style, ...props })...
onResize
When resizing the screen, we need to have this handler
Is React Native support on the roadmap? Or are PR's for this welcome?