Password
Overview
Use this component to allow a user to enter their password.
The password is hidden by default, but the user can choose to show it if they want to check what they have entered.
How this component works
The <input>
and <label>
is separated by a checkbox component (opens in a new tab) .
This checkbox has classes .ons-js-password-toggle-wrap
and .ons-checkbox--toggle
on the wrapping <div>
and .ons-js-password-toggle
on the <input>
.
How to use this component
The <input>
and <label>
is separated by a checkbox component with classes .ons-js-password-toggle-wrap
and .ons-checkbox--toggle
on the wrapping <div>
and .ons-js-password-toggle
on the <input>
.
Help improve this page
Let us know how we could improve this page, or share your user research findings. Discuss the ‘Password’ component on GitHub (opens in a new tab)