Repository navigation
Adding properties to <Portal> components #1196
Yukaru-san
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When using Portals I noticed that there are always new <div> containers being created that wrap around the children.
A previous discussion showed me that this has to be done to prevent some major issues.
Wrapping children into an empty <> bracket would make the created div it's only parent though. The current issue with that approach however is that the Portal's <div> does not support adding classnames or an id. Would it be possible to add this functionality to Portal components?
I'm thinking about something like this:
producing something like this:
currently something similar would look like this:
All reactions