CodeAI

Text Input

Single-line field or multiline area with Field Wrapper label/helper. Figma name: Text Input.

Appearance

Content

Value

State

Layout & behavior

Props — TextInput
View MUI docs
PropTypeDescription
size"large" | "medium" | "small" | "extraSmall"Control height. Default medium (40).
color"primary" | "secondary"primary = solid border; secondary = soft border.
multilinebooleanRenders a textarea when true.
type"text" | "password" | stringNative HTML input type. Use password to conceal field contents. Field-only; ignored when multiline.
startIconNameFaIconNameLeading FA icon. Field-only; omitted when unset or multiline.
labelstringField label above the control.
helperTextReactNodeHelper or validation message below.
helperIconNameFaIconNameOptional icon beside helper text.
showHelperbooleanShow helper row when helperText is set.
sentiment"default" | "success" | "warning" | "error"Validation tone for label and helper.
errorbooleanError field styling.
readOnlybooleanRead-only; not editable.
disabledbooleanDisables interaction.
requiredbooleanNative required on the control + * after the Field Wrapper label.
placeholderstringPlaceholder text.
valuestringControlled value.
defaultValuestringUncontrolled initial value.
rowsnumberTextarea row count when multiline.