-
-
Notifications
You must be signed in to change notification settings - Fork 184
feat[popover]:added trigger ref to support external trigger outside root #2168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat[popover]:added trigger ref to support external trigger outside root #2168
Conversation
commit: |
Bundle size report
|
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Thank you, @piyushzala158! |
Yes |
Co-authored-by: Oleksandr Danylchenko <68850090+oleksandr-danylchenko@users.noreply.github.com> Signed-off-by: Piyush Zala <99941375+piyushzala158@users.noreply.github.com>
Thanks for the contribution @piyushzala158 Right now, though, this isn't going to work 😅: the trigger's props (
We discussed this somewhat briefly yesterday and thought something like Toast's API could possibly work for things like Dialogs and Popovers. This means you render your Popover(s) high up in the tree and use a hook to "create" them by passing structured data that the renderer uses as a template. That said, I don't know if this solves @oleksandr-danylchenko's use case with the |
I like this idea 🙌🏻 |
Issue: #2157