Issue
I am designing a form and i would like the input box like the picture below in angular material matInput. How to achieve this?
Here is a screenshot of how i want the input box to be displayed:
Solution
By shadow I guess you mean the filled appearance of a material text field. You get this look by adding appearance="fill"
to your mat-form-field
.
<mat-form-field appearance="fill">
<mat-label>Fill form field</mat-label>
<input matInput placeholder="Placeholder">
</mat-form-field>
Form field appearance variants
Answered By - frido
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.