@smallstack/form-components

This package uses icon8.com icons. If you do not have a license, please follow their free usage policy: https://icons8.com/license

Usage no npm install needed!

<script type="module">
  import smallstackFormComponents from 'https://cdn.skypack.dev/@smallstack/form-components';
</script>

README

@smallstack/form-components

This package uses icon8.com icons. If you do not have a license, please follow their free usage policy: https://icons8.com/license

A word on validation

The validation for smallstack forms is based on JSONSchema7, but internally the form is using angular reactive forms.

Whenever a form is created:

  • one FormGroup is created
  • several form widgets do their work and create a FormControl based on their portion of the JSONSchema7
  • form validation is done onBlur
  • on submit, the data is checked against the JSONSchema7. Why? Because Angular Reactive Forms do not cover all possible validations from JSONSchema7.