-
Notifications
You must be signed in to change notification settings - Fork 75
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
Provide label element linked to input #34
Comments
We pass-through all props to the component, so |
Ah, I see. All props are passed to wrapper |
Now I understand what you mean (I think so) You should use something like: <RadioGroup for="blah" Component="label">
<Radio>
// ... |
note it's |
My own hack was to use uuid, since ids need to be unique: |
If you wrap Radio into label, you will need neither id nor htmlFor.
|
ok, that would then solve the problem label not being clickable. thanks. |
What if you use it like this? |
Hi,
Great component, however I'm missing functionality to provide label with
for
attribute that would link toinput
element. Would it be possible to include this property?The text was updated successfully, but these errors were encountered: