Components

Textarea

Capture multi-line text input from users. Ideal for comments, descriptions, and feedback.

Description
Copy to clipboard
<flux:textarea />

With placeholder

Display a hint inside the textarea to guide users on what to enter.

Order notes
Copy to clipboard
<flux:textarea    label="Order notes"    placeholder="No lettuce, tomato, or onion..."/>

Fixed row height

Customize the height of the textarea by passing a rows prop.

Note
Copy to clipboard
<flux:textarea rows="2" label="Note" />

Auto-sizing textarea

Using CSS's new field-sizing property, the textarea will automatically adjust its height to fit the content by passing in the rows="auto" prop.

This feature is not available in all web browsers. Visit caniuse.com to see which browsers support this feature.

Copy to clipboard
<flux:textarea rows="auto" />

Configure resize

If you want to restrict the user from resizing the textarea, you can use the resize="none" prop.

Copy to clipboard
<flux:textarea resize="vertical" /><flux:textarea resize="none" /><flux:textarea resize="horizontal" /><flux:textarea resize="both" />

Reference

flux:textarea

Prop
Description
wire:model
Binds the textarea to a Livewire property. See the wire:model documentation for more information.
name
Name attribute for the textarea. Automatically set when using wire:model.
placeholder
Placeholder text displayed when the textarea is empty.
label
Label text displayed above the textarea. When provided, wraps the textarea in a flux:field component with an adjacent flux:label component. See the field component.
description
Help text displayed below the textarea. When provided alongside label, appears between the label and textarea within the flux:field wrapper. See the field component.
description:trailing
The description provided will be displayed below the textarea instead of above it.
badge
Badge text displayed at the end of the flux:label component when the label prop is provided.
rows
Number of visible text lines. Use "auto" for automatic height adjustment. Default: 4.
resize
Control how the textarea can be resized. Options: vertical (default), horizontal, both, none.
invalid
If true, applies error styling to the textarea.
Attribute
Description
data-flux-textarea
Applied to the textarea element for styling and identification.
Copyright © 2025 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie