Laravel Splade

Laravel Splade

  • Introduction

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

    • Navigation and routing
    • Progress bar
    • Toasts
    • Shared data
    • Title and meta tags
    • 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
    • Model Binding
  • 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
    • Customization
    • Translations
    • Exception handling
    • How Splade works

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