Why does the checkbox not support the 'required' prop? #3510
Replies: 2 comments 1 reply
-
I don't understand either. RadixUI have it: https://www.radix-ui.com/primitives/docs/components/checkbox#api-reference |
Beta Was this translation helpful? Give feedback.
-
Catalyst relies on Headless UI where Personally – I don't know, these guys rarely explain their design decisions. Unlike |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a big fan of the new catalyst framework, but I've been tripped up by the checkbox component not supporting the 'required' attribute detailed here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#validation
Is this an oversight, or a deliberate decision. If it's the latter, is there an example of how I can get it to play nice with the HTML5 form validity states?
Beta Was this translation helpful? Give feedback.
All reactions