carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.86k stars 1.82k forks source link

Which validation library is compatible with Carbon? #7628

Closed biapar closed 3 years ago

biapar commented 3 years ago

Which validation library is compatible with Carbon?

tw15egan commented 3 years ago

Hey there @biapar do you have any more information that you could provide us so we can help answer your question? What are you trying to validate?

biapar commented 3 years ago

Hi, I create a form with more fields and so I need to validate input from client side before to save. I used Formik, but there isn’t anything included with Carbon.

tw15egan commented 3 years ago

You'll need to handle the validation yourself. All Carbon form elements have an invalid and invalidText property to handle displaying the errors. Hope that helps!

biapar commented 3 years ago

yes, I solved in that manner. thanks.

tw15egan commented 3 years ago

Great to hear! Going to close this out but feel free to reach out with any other questions you may have 🙂