Basics
Contains all Basic Methods.
The Textarea field is a multi-line text input field in MoonShine. This field is equivalent to the <textarea></textarea> tag.
use MoonShine\UI\Fields\Textarea;Textarea::make('Text')use MoonShine\UI\Fields\Textarea;Textarea::make('Text')
Field Height
To set the height of the field, you can use attributes.
Textarea::make('Text')->customAttributes(['rows' => 6,])Textarea::make('Text')->customAttributes(['rows' => 6,])
Disabling Escaping
The unescape() method disables the escaping of HTML tags in the field value.
Textarea::make('HTML Content', 'content')->unescape()Textarea::make('HTML Content', 'content')->unescape()