Text Field

Text fields let users enter text into a UI.

<md-outlined-text-field
  label="Labelled"
  placeholder="Placeholder"
></md-outlined-text-field>
<md-filled-text-field
  label="Labelled"
  placeholder="Placeholder"
></md-filled-text-field>

Properties

NameTypeDefaultDescription
labelString''The label text for the text field.
supportingTextString''Helper text displayed below the text field.
focusedBooleanfalseWhether the text field is focused.

Methods

NameDescription
focus()Focuses the text field.
blur()Removes focus from the text field.
select()Selects the text content of the field.