Laravel Splade

Laravel Splade

  • Introduction

    • Introducing Splade
    • Credits
    • Automatic installation
    • Manual installation
    • Breeze starter kit
    • Jetstream starter kit
    • Upgrading
    • Demo app
    • Roadmap
    • Inertia.js comparison
    • Livewire comparison
  • Basics

    • Navigation and routing
    • Progress bar
    • Toasts
    • Shared data
    • Title and meta tags
    • Transformers
    • Lazy loading
    • Server-side rendering (SSR)
  • Components

    • Content
    • Data
    • Defer
    • Errors
    • Event
    • Flash
    • Form
    • Link
    • Modal
    • Rehydrate
    • Script
    • State
    • Teleport
    • Toggle
    • Transition
    • Custom components
  • Form components

    • Overview
    • Input
    • Textarea
    • Select
    • Checkbox
    • Radio
    • File
    • Group
    • Submit
    • Wysiwyg (Jodit)
    • Model Binding
  • Form Builder

    • Overview
    • Available fields
  • Table component

    • Overview
    • Built-in Query Builder
    • Bulk Actions
    • Exports
    • Spatie Query Builder
  • Vue components and libraries

    • Custom components
    • Vue libraries
    • Form components
  • Advanced

    • State management
    • Persistent layout
    • Event bus
    • Bridge Components (Beta)
    • Customization
    • Translations
    • Exception handling
    • How Splade works

Hosted with Eddy Server Management

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();