Components · Text field
Text field
Single-line inputs and textareas with label and supporting text.
Anatomy
- 1
.text-field-rootField composition and message boundary. - 2
.text-field-labelAccessible field label. - 3
.text-field-controlOutlined field container. - 4
.text-field-icon-startOptional leading icon aligned with the input. - 5
.text-field-inputNative input or headless input part. - 6
.text-field-textareaMultiline text entry part. - 7
.text-field-adornmentOptional trailing text adornment (e.g. a "px" unit). - 8
.text-field-supporting-textDescription, counter, or validation message.
Variants
- Single line
- Multiline
Slots
What the component can hold. Every other combination — emphasis, size, shape — is a configuration; pick those in Use.
Shown in the theme gallery.
px
Type a value in pixels.When to use
Use a text field when people need to enter or edit a short value that cannot be chosen from a fixed list.