<TextField
label="Label"
description="Description"
hint="Hint text"
error="Error message"
errorAriaLive="assertive"
loading={false}
moreInfo="More info"
prefix="Prefix"
required={false}
size="medium"
suffix="Suffix"
type="text"
showCounter={true}
maxLength={100}
placeholder="Placeholder"
/>
TextField Props
The TextField component spreads any props not listed here to the underlying HTML input element, so props such as id and name will work as expected. However, the type prop is restricted to the values listed below. Note that there is no prop to control the width: the top-level element of the TextField is set to display: flex and it will expand to fill the width of its parent element.error
ReactElement | string | boolean
If true, the TextField will show an error state with no message. Any
non-boolean value will also display as an error message.
errorAriaLive
"off" | "assertive" | "polite"
default:"assertive"
Visually hides the label while keeping it accessible to screen readers via aria-label.
Label for the field. Supports inline markdown formatting.Omitting label is deprecated and will be required in v4.0.0. Use hideLabel to visually hide it. Passing ReactNode is also deprecated — use a plain string with inline markdown instead.
Loading spinner is rendered when true
Required if showCounter is true.
size
"small" | "medium" | "large"
default:"medium"
type
"text" | "email" | "tel" | "url" | "password" | "number"
default:"text"