Skip to Content

Text Field

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

Component props

NameTypeDescription
labelstringLabel text displayed above the field
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