Open Marina-L-Stoyanova opened 1 month ago
We should consider:
- In-Component Validation:
Implement validation logic directly within the Web Components that can be used in a Form(igc-input, igc-textarea, igc-select and ect.). This approach encapsulates validation rules and keeps them self-contained.
This is already covered by the existing form associated components.
Displaying Validation Messages Slot Considerations
This definitely merits further exploration and potential integration into the library. In my opinion, dedicating a distinct slot solely for error messages seems advantageous. We'll begin to consider these aspects and aim to have a preliminary implementation shortly.
Here is a sample that demonstrate the current way to implement Web Components form with validation: Web Components Validation
We should consider: