mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
755 B
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)
