Password

Password displays strength indicator for password fields.

Two-way value binding is defined using ngModel.

Two-way value binding is defined using ngModel.

basic-demo

Strength meter is displayed as a popup while a value is being entered.

meter-demo

Labels are translated at component level by promptLabel, weakLabel, mediumLabel and strongLabel properties. In order to apply global translations for all Password components in the application, refer to the locale

locale-demo

When toggleMask is present, an icon is displayed to show the value as plain text.

toggle-mask-demo

3 templates are included to customize the overlay. These are header, content and footer. Note that content overrides the default meter.

template-demo

A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.

float-label-demo

IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.

ifta-label-demo

When showClear is enabled, a clear icon is displayed to clear the value.

clear-icon-demo

Password provides small and large sizes as alternatives to the base.

sizes-demo

The fluid prop makes the component take up the full width of its container when set to true.

fluid-demo

Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.

filled-demo

When disabled is present, the element cannot be edited and focused.

disabled-demo

The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.

invalid-demo
template-driven-forms-demo

Password can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.

reactive-forms-demo

Screen Reader

Value to describe the component can either be provided via label tag combined with id prop or using ariaLabelledBy, ariaLabel props. Screen reader is notified about the changes to the strength of the password using a section that has aria-live while typing.

Keyboard Support

KeyFunction
tabMoves focus to the input.
escapeHides the strength meter if open.
ON THIS PAGE
Theme Designer
Theme Designer is the ultimate tool to customize and design your own themes featuring a visual editor, Figma to theme code, cloud storage, and migration assistant.
Learn More