Form Input
Form input component.
Form Input, Customization Blocks
<x-input /> <!-- type as text --> <x-input email /> <!-- type as email -->
<x-input label="Name" hint="Insert your name" />
You can also set raw HTML in the label attribute:
<x-input> <x-slot:label> <span>Name</span> </x-slot:label></x-input>
An option to display an asterisk indicating that the field is required.
<x-input label="Name *" hint="Insert your name" />
<x-input label="Name" icon="users" /><x-input label="Name" icon="cog" position="right" />
<x-input prefix="https://" label="Domain" /><x-input suffix="@gmail.com" label="E-mail" /> <!-- or --> <x-input> <x-slot:prefix> Prefix </x-slot:prefix> <x-slot:suffix> Suffix </x-slot:suffix></x-input>
<x-input label="Readonly" value="Readonly text" readonly /><x-input label="Disabled" value="Disabled text" disabled />
<x-input value="TallStackUI" clearable />
An option to remove the first zero characters
<x-input strip-zeros />
An option to not show validation error message.
<x-input label="Name" invalidate />