Skip to content

Textarea

A multi-line text field.

Group: Inputs · Kind: native · in the lite catalog

example
disabled · true

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-textarea on Web
exponential-ui-textarea on iOS
exponential-ui-textarea on Android
exponential-ui-textarea on Desktop
Prop Type Required Bindable Description
label string yes – The field label.
name string yes – The field’s key in the submitted data.
placeholder string – – Hint text while empty.
rows number – – Visible lines (the minimum when autosizing). Default 3.
autosize boolean – – Grows with the text from rows up to maxRows. Default false.
maxRows number – – Autosize stops growing here and scrolls.
value string – yes The text; bind it to a data path.
disabled boolean – – Shows it inert. Default false.
checks [check] – – Validation rules.
validateOn change | blur | submit – – When the checks run. Default "blur".
  • on.change: runs an action
  • on.focus: runs an action
  • on.blur: runs an action

None.

none

The basic catalog’s TextField (longText) renders as Textarea.

A native component: every renderer paints it directly.

Role: textbox

textbox (multiline)

Keys Action
Enter newline

Recipe parts: Textarea/root Textarea/label Textarea/field Textarea/placeholder Textarea/description Textarea/error

Keyed by: disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · NumberField · Checkbox · Radio · ChoiceTiles