validate nuxtui radio buttons with zod
Hi,
I do not get an error message for my radio buttons when I click on submit. Text input works as expected.
I got it worked with wrapping a formgroup around it, but then only the error message appears, but the radiobuttons do not get an error styling like an input text field
any ideas how I can get also error styling on inputs?
best,
gregor
1 Reply
ok got it work...
is used the error message from template to set an error prop on my wrapper component for the radiobutton
and inside the radiobox I put some stylings on the ui prop, where the actual <URadio /> lives
not sure if that is best practise but it works π