Skip to content

a-form-field

Implemented with Form.

FormFieldElement

A form field can be any single field of a form. It is used to capture changes and validation events of a form field.

Example


<form>
<a-form-field>
<input name="name" required />
</a-form-field>
</form>

FormFieldErrorElement

The form field error element is responseible for displaying validation errors to the user.

Example


<form>
<a-form-field field="name">
<input name="name" required />
<a-form-field-error />
</a-form-field>
</form>