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')- autoFocus:false
- columnWidth:"md"
- conditions:null
- dependsOnAny:false
- dependsOnKeys:null
- disabled:false
- editablePrefill:false
- helperText:null
- hidden:false
- label:"Bio"
- name:"bio"
- placeholder:"Tell us about yourself"
- prefillRefreshOn:null
- prefillResetOn:null
- readOnly:false
- required:false
- rows:4
- tabIndex:null
- tooltip:null
- value:null
->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
Section titled “Placeholder”->placeholder() sets the muted hint shown while the field is empty. It is not a value — an empty
field still submits as empty.
Autofocus
Section titled “Autofocus”->autoFocus() focuses the field when the form mounts. Use it on the first field only.
Textarea::make('bio', 'Bio')->autoFocus();Common options
Section titled “Common options”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.