Flux components
Textarea
A multi-line text field.
<flux:textarea label="Review" placeholder="Write your thoughts about this product..." />
Rows
<flux:textarea label="Notes" rows="2" />
Resize
Options are vertical (the default), horizontal, both and none.
<flux:textarea label="Fixed size" resize="none" rows="3" />
Invalid
A review needs at least 10 characters.
<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
| Prop | Description |
|---|---|
| label | Label above the field. |
| description | Smaller text under the label. |
| placeholder | Placeholder text. |
| rows | Visible rows. Default: 4. |
| resize | Options: vertical, horizontal, both, none. Default: vertical. |
| invalid | Marks the field as invalid. |
| wire:model | Binds to a Livewire property. |