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')
Field Height
To set the height of the field, you can use attributes.
Textarea::make('Text') ->customAttributes([ 'rows' => 6, ])
Disabling Escaping
The unescape()
method disables the escaping of HTML tags in the field value.
unescape()
Example usage:
Textarea::make('HTML Content', 'content') ->unescape()