Forms
TextArea
Multi-line text. Same label, help and error rules as TextField.
- Set
rowsto the expected length; it resizes vertically. - Use
maxLengthto show a live count beside the label.
When to use
Multi-line text: notes, descriptions, messages.
Use something else
One line → TextField. Rich formatting → not covered by Tessera; ask before adding.
Do
- Set
rowsto the expected length (4 by default). - Use
maxLengthwhen there is a hard limit; the counter appears automatically.
Don't
- Don't use it for structured data that could be separate fields.
Props
| Prop | Type |
|---|---|
label | string |
placeholder | string |
value | string |
defaultValue | string |
onChange | (v: string) => void; rows?: number; maxLength?: number; description?: string; error?: string; required?: boolean; disabled?: boolean; readOnly?: boolean; className?: string |
Use
const { TextArea } = window.Tessera;
const el = React.createElement(TextArea, { /* props */ });