Password input

A password input allows users to create or enter a password.

How to use password input

Use the password input on sign-in forms so that users can enter their password. Use it on registration forms to help users to create a secure and memorable password.

When using a password input:

  • Clearly label the input field so users know that it’s for a password
  • Programmatically connect the label to the input field
  • Give clear instructions on mandatory values and length
  • Make sure that validation messages and hints are announced to screen reader users

Types of password input

Standard

The standard password input allows the user to enter or create a password.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Your password must have 8 or more characters, at least 2 uppercase letters, at least 3 special characters, and at least 4 numbers.

With visibility toggle

A visibility toggle gives users the option to show their password as readable text.

This feature is particularly useful on a mobile where accurate typing is more difficult.

It can also be used in place of a second 'confirm password' field when the user is creating a new password.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Your password must have 8 or more characters, an uppercase letter, a special character, and a number.

With error message

Use an error message to show if the user’s password has not met the password security requirements. But remember that any password requirements should be made clear right away.


Was this page helpful?


Get in touch

Our team can answer any questions about using password inputs or give you a helping hand with your next project.
Select a theme to demo: