Create a component

Hi @flo,
As discussed during office hour, I am trying to build a form validator.
As I have several inputs that need to be completed properly, you suggested creating a component.
Does anyone could help me understand the logic in building custom component especially to be used as a validator?
Thank you all.

Could you link to the office hours timestamp or explain a little bit more what you’re trying to do?

It was from yesterday not sure where to access the link?

Basically, form validator, your users answer a bench of questions, (array, objects, text type etc.) and you want to make sure they have answered everything properly otherwise when the API call is made I have an error.
Eg: email address : test.com (should not be allowed)
Select at least 2 options : (1 option selected) = should not be allowed

It really depends on the actual fields, some fields like email come with defined verification out of box so you dont need to add any logic

As per group of options where there is a required number of selections youre going to want to add some custom verification

If you build your form and show to me the parts that need some custom verification i can help you