Tessera
GitHub

Forms

TextArea

Multi-line text. Same label, help and error rules as TextField.

  • Set rows to the expected length; it resizes vertically.
  • Use maxLength to 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 rows to the expected length (4 by default).
  • Use maxLength when there is a hard limit; the counter appears automatically.

Don't

  • Don't use it for structured data that could be separate fields.

Props

PropType
labelstring
placeholderstring
valuestring
defaultValuestring
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 */ });