Switching Off the Float Label of Our Angular Material Form Field

Ole Ersoy
Aug 26, 2019

--

Photo by Jose Antonio Jiménez Macías on Unsplash

Updated Version

There’s an updated version of this article here:

Scenario

We have a material search form field:

<mat-form-field><input matInput placeholder="Search"></mat-form-field>

And we want to turn off the floating label.

Approach

Just add floatLabel='never' .

Brought to You By

--

--

Ole Ersoy
Ole Ersoy

Written by Ole Ersoy

Founder of Firefly Semantics Corporation

Responses (1)