Examples
Not resizable
No resize handle (resize: none). PF\u2019s "Uncontrolled" section is a React state demo.
Documentation
Text area props
Parameters accepted by
{#include components/forms/text-area ... /}. Model mode: pass
textArea=<TextArea> built in Java instead — the Java tab on each example shows
the builder.
| Name | Type | Description |
|---|---|---|
* id
|
String |
Wrapper id; inner textarea gets {id}-field.
|
value
|
String | Initial textarea contents. |
rows
|
Integer |
HTML rows attribute — visible row count.
|
resize
|
vertical | horizontal | both
|
Resize orientation — emits pf-m-resize-{resize}. Omit to use browser
default.
|
disabled / readonly /
required
|
boolean | Standard HTML form attrs. |
validated
|
success | warning | error
|
Validation state. |
Usage
Resize policy. Default to vertical — horizontal resize is rare and
breaks responsive layouts.
Auto-resize. PF React has an autoResize prop; we don't ship one.
Attach a small Alpine component if you need it.