You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure how to create a simple radio group with labels and validation.
My requirements are:
A Label for radio group
Multiple radio buttons each with a label
All radio buttons have same name (ie belong to same radio group)
Single validation-hint for the entire group (which is shown if none of the options are selected while submitting.)
I have tried here - https://play.tailwindcss.com/3QAfIaoLy5 - but it doesn't work as expected. When I check one of the genders, all the radio buttons in the gender group get validated and become green. However, if a radio button group does not have a validator ancestor, it behaves correctly.
I couldn't find any examples in the docs or discussions about using validator with radio buttons. @saadeghi can you please help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure how to create a simple radio group with labels and validation.
My requirements are:
I have tried here - https://play.tailwindcss.com/3QAfIaoLy5 - but it doesn't work as expected. When I check one of the genders, all the radio buttons in the gender group get validated and become green. However, if a radio button group does not have a
validator
ancestor, it behaves correctly.I couldn't find any examples in the docs or discussions about using validator with radio buttons. @saadeghi can you please help.
Beta Was this translation helpful? Give feedback.
All reactions