Skip to content

Textarea

The textarea collects multi-line text. Create one with Textarea::make(), passing the field name and its label.

Textarea::make('bio', 'Bio')
->rows(4)
->placeholder('Tell us about yourself')

->rows() sets the visible height of the field in text rows. It is a starting height only — the field still grows as the user types past it.

Textarea::make('bio', 'Bio')->rows(4);

->placeholder() sets the muted hint shown while the field is empty. It is not a value — an empty field still submits as empty.

->autoFocus() focuses the field when the form mounts. Use it on the first field only.

Textarea::make('bio', 'Bio')->autoFocus();

Textarea shares label, default value, required, disabled, read-only, and visibility options with every field — see Fields. For validation and conditional behavior, see Validation and Conditional fields.