laravel-form-components
Inputs
On this page
{note} You're browsing the documentation for an old version of laravel-form-components. Consider upgrading your project to v8. Check your version with the following command:
`composer show rawilk/laravel-form-components`
Introduction
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.
Basic Usage
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.