The password field is a specialized input field with the ability to toggle between the masked field or to view the password in plain text.
Use a password field when the user needs to set or input the password.
When setting a password, display the password requirement in the helper text to guide the user. Don’t hide it a in signpost, or reveal it only after the user fails the first attempt.
Passwords are available in vertical, horizontal, and compact layout. Vertical Password layouts can have improved usability in addition to the general guidelines when the message text is used to display requirements. See more layout guidelines on the form page.