Closed nikitavoloboev closed 1 year ago
you can pass any prop you want to the child component. Is this what you mean?
function TextField({id}:{id: string}){
// ..
}
function Page() {
return (
<Form
props={{
textField: {
id: 'anId'
}
}}
/>
)
}
props
will pass to the input components and you can do whatever you want with the props. That work?
Closing because of lack of activity, feel free to reopen if the above isn't solving your problem
Yes thank you it did solve it.
Is your feature request related to a problem? Please describe.
We are testing our react app and that requires the
input
element to have a certainid
prop likeemailAddress
ororderNumber
.I read docs and could not find a way to add them using this library as you seem to only be able to pass props or id to the wrapper div that wraps over the inputs and not each individual input itself. Unless I am mistaken.
Describe the solution you'd like
Be able to add
id
prop to each individual input box.