How do I use checkboxes with boolean values? #300
-
I'm starting from a schema which has a boolean value, and I'd like that represented by a checkbox. I've set the type to checkbox when getting the input props, but it isn't working. I've put a reproduction here - the value starts as https://codesandbox.io/s/naughty-julien-rtflyw?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A few things:
|
Beta Was this translation helpful? Give feedback.
I'm not aware of a shortcut. FWIW, I expected Conform or Zod or something to handle it for me the first time I ran into it, too. 🤷♂️