As of August 2024, Splade is no longer actively maintained. Though we will try to keep up with future Laravel and PHP versions, we discourage using Splade in new projects.

After a period of reflection, we've come full circle and decided to bring the magic of Splade back to Inertia, where it all started. Please check out this new chapter in our journey: Inertia UI.

X-Splade-Submit Component

The Submit Component has a default label and spinner visible when processing the form. You may change the default text using the label attribute, and you may disable the spinner as well.

<x-splade-submit label="Apply settings" :spinner="false" />

You may also use a slot:

<x-splade-submit>
<svg>...</svg>
<span>Send now</span>
</x-splade-submit>

In addition to providing a custom template with a slot, you may change the styling of the default submit button with the danger or secondary attributes:

<x-splade-submit danger label="Remove account" />
 
<x-splade-submit secondary label="Save for later" />