Skip to content

TextAreaField

A multi-line text input field for longer content.

PropTypeDefaultDescription
value(instance: TCommand) => unknownRequired. Accessor function returning the property value from the command instance.
titlestringThe label for the field.
placeholderstringPlaceholder text shown when empty.
rowsnumber5Number of visible text rows.
colsnumberNumber of visible text columns.
requiredbooleanOverride automatic required detection.
<TextAreaField<UserCommand>
value={c => c.bio}
title="Biography"
placeholder="Tell us about yourself..."
rows={8}
/>
<TextAreaField<NoteCommand>
value={c => c.notes}
title="Additional Notes"
rows={3}
/>