Text fields let users enter and edit text. The TextField wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
$id - string The identifier must be unique across the page.
$name - string The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted. Note: Only form elements with a name attribute will have their values passed when submitting a form.
$type - text/email
$labelFor - string When used together with the element, the for attribute specifies which form element a label is bound to.
$label - string
$required - required
!> The required attribute may remain empty
<x-input.text-input>
<x-slot:id>1</x-slot:id>
<x-slot:name>email</x-slot:name>
<x-slot:type>email</x-slot:type>
<x-slot:placeholder>email</x-slot:placeholder>
<x-slot:labelFor>floating_email</x-slot:labelFor>
<x-slot:label>email adres</x-slot:label>
<x-slot:required>required</x-slot:required>
</x-input.text-input>
<div class="contact-form-textinput-container group">
@if ($required->isNotEmpty())
<input class="contact-form-textinput peer" type="{{$type}}" id="{{$id}}" {{$required}} name="{{$name}}" placeholder="{{$placeholder}}"/>
@else
<input class="contact-form-textinput peer" type="{{$type}}" id="{{$id}}" name="{{$name}}" placeholder="{{$placeholder}}"/>
@endif
<label for="{{$labelFor}}" class="contact-form-text-input-label z-13">{{$label}}</label>
</div>