Inputs
Text field
The foundation of every form: a labelled single-line input with filled and outlined surfaces, leading and trailing slots, helper text, and error states connected to the theme.We only use it to send the invite
At least 8 characters
This city is not supported yet
Playground
Configure the complete public surface and copy synchronized kebab-case markup.
Token map
Inspect how the field's component tokens map onto system tokens across variants and states.
MTextField · All91 tokens
md-text-fieldMTextField API
Props, slots, and events are hydrated from the generated public manifest.
Props
NameTypeDefault
disabledPrevents interaction and applies the disabled visual state.booleanfalseloadingReplaces content with progress feedback and prevents interaction.booleanfalsereadonlybooleanfalsevariant'filled' | 'outlined' | 'underline''filled'rounded'sharp' | 'small' | 'medium' | 'large' | 'pill''small'labelPlacement'top' | 'float' | 'inset' | 'hidden''float'pathstringundefinednamestringundefinedlabelstringundefinedplaceholderstringundefinedhelperTextstringundefinederrorbooleanfalseerrorMessagestringundefinedrequiredbooleanfalseautofocusbooleanfalseautocompletestringundefineddensity'compact' | 'default' | 'comfortable''default' as MFieldDensitytype'text' | 'number' | 'email' | 'password''text'inputAttrsNative input attributes/listeners used by composite fields such as comboboxes.InputHTMLAttributesundefinedpopulatedForce the floating label into its raised position regardless of the text value. Composite fields (e.g. a multiple combobox) set this while chips occupy the field but the text draft is empty, so the label does not drop back onto them on blur.booleanfalseSlots
Events
MTextField does not emit component-specific events. Native events fall through to its root element.