const fields: IField[] = [
{
type: 'input', // required
name: 'name-field-email', // required
value: '', // optional
attributes: {
type: 'email', // default = text, or password, email, number, tel, optional
id: 'id-field-email', // optional
classes: ['form-control'], // optional
label: 'Label field email', // optional
placeholder: 'Placeholder field email', // optional
disabled: false, // optional
readonly: false // optional
},
rules: ["email"], // optional
}
];