Form Inputs

Text Field

A text field allows a user to enter a plain text value with a keyboard.

A text field allows a user to enter a plain text value with a keyboard.

Placeholder text#

Disabled#

Read only#

As textarea#

Copy button#

Quiet#

Label, description and error#

We will never share your address.

Component props#

NameTypeDescription
labelstringLabel text displayed above the field
descriptionReactNodeHelper text rendered below the field and linked with aria-describedby
errorReactNodeError message rendered below the field. Sets aria-invalid and role="alert"
placeholderstringPlaceholder text
valuestringControlled value
defaultValuestringDefault value (uncontrolled)
variantTextFieldVariant"quiet" | "none"
asTextAreabooleanRenders as a textarea instead of input
resizeResizeDirection"vertical" | "horizontal" | "both" | "none"
allowCopybooleanShows a copy button
isReadOnlybooleanMakes the field read-only
isDisabledbooleanDisables the field
onChange(value: string) => voidCalled when value changes