The email component offers an easy way to set up an email input field for your forms. By simply setting its name attribute it also automatically sets your id and makes sure old values are respected.

The most basic usage of the component is like this:

<x-email name="email" />

By default, an email type will be set for the input field as well as an id that allows it to be easily referenced by a label element.

Besides this, the email element behaves exactly the same as the input component.

Caught a mistake? Suggest an edit on GitHub