Form

Forms are used to collect data from inputs which will be sent to the server.


/* form-example.blade.php */

<x-form method="POST">
<x-label content="Email" />
<x-input type="email" name="email" placeholder="[email protected]" class="mb-2" />
<x-button type="submit" color="zinc" content="Submit" class="w-full" />
</x-form>

Component API

Prop Description Values
method Change the method of the form any
action Set the action of the form (url) any
csrf Enable or disable the csrf input.
If not set will be automatically set based on `method`.
Boolean|null