Components
You’re browsing the documentation for an old version of Flux. Go to v2.x ->

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
<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
<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.

<flux:textarea rows="auto" />

Configure resize

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

<flux:textarea resize="vertical" /><flux:textarea resize="none" /><flux:textarea resize="horizontal" /><flux:textarea resize="both" />
Copyright © 2025 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie