Files
filament/packages/forms/docs/03-fields/15-textarea.md
T
2022-11-01 22:19:11 +00:00

755 B

title
title
Textarea

The textarea allows you to interact with a multi-line string:

use Filament\Forms\Components\Textarea;

Textarea::make('description')

You may change the size of the textarea by defining the rows() and cols() methods:

use Filament\Forms\Components\Textarea;

Textarea::make('description')
    ->rows(10)
    ->cols(20)

You may limit the length of the string by setting the minLength() and maxLength() methods. These methods add both frontend and backend validation:

use Filament\Forms\Components\Textarea;

Textarea::make('description')
    ->minLength(50)
    ->maxLength(500)