Passing children in Field components #3386
GeorgeHulpoi
started this conversation in
Feature Requests & 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.
-
Hello!
It would be great if we could pass ReactNodes into different parts of a Field. For example, for Text Field Component, instead of:
It would be great to have a few props like:
Also, it would be a good idea to wrap the
input
into adiv
with a class (eg: 'input-wrapper') and have there a prop for children as well. Setting thatdiv
withposition: relative
can help us attach different components to theinput
. A good example would be acheckbox
like in:Beta Was this translation helpful? Give feedback.
All reactions