1. Components
  2. Text

Components

Text

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