1. Components
  2. Number

Components

Number

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: 'number', // required
		value: '', // optional
		attributes: {
			type: 'number', // default = text, or password, email, number, tel, optional
			id: 'number', // optional
			classes: ['form-control'], // optional
			label: 'Field number', // optional
			placeholder: 'Placeholder field number', // optional
			disabled: false, // optional
			readonly: false // optional
		}
	}
];
Result

Previous <- Email