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
-
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:
Beta Was this translation helpful? Give feedback.
All reactions