M Majid DS mds
GitHub

Flux components

Textarea

A multi-line text field.

Review
<flux:textarea label="Review" placeholder="Write your thoughts about this product..." />

Rows

Notes
<flux:textarea label="Notes" rows="2" />

Resize

Options are vertical (the default), horizontal, both and none.

Fixed size
<flux:textarea label="Fixed size" resize="none" rows="3" />

Invalid

Review
<flux:field>
    <flux:label>Review</flux:label>
    <flux:textarea rows="3" invalid />
    <flux:error name="review" message="A review needs at least 10 characters." />
</flux:field>

Reference

flux:textarea

PropDescription
labelLabel above the field.
descriptionSmaller text under the label.
placeholderPlaceholder text.
rowsVisible rows. Default: 4.
resizeOptions: vertical, horizontal, both, none. Default: vertical.
invalidMarks the field as invalid.
wire:modelBinds to a Livewire property.

Related