1. Components
  2. Email

Components

Email

NOTE

the property attributes.type by default is a text and you can change it to password | email | number | range | tel

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