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-Textarea Component

The Textarea Component is based mainly on the Input component and provides an integration with the autosize library. This is as simple as adding the autosize attribute to the element:

<x-splade-textarea name="biography" autosize />

If you want to enable autosize on every textarea element, you may use the static defaultAutosize on the Textarea class, for example, in the AppServiceProvider class:

use ProtoneMedia\Splade\Components\Form\Textarea;
 
Textarea::defaultAutosize();