Password

Password displays strength indicator for password fields.

PREVIEW

Password is used with the v-model property for two-way value binding.

basic-demo

InputText is used with the v-model property.

forms-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.

togglemask-demo

3 slots 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.

floatlabel-demo

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

iftalabel-demo

When showClear is enabled, a clear icon is added to reset the Password.

clearicon-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

Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.

invalid-demo

Screen Reader

Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby, aria-label 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.
Theme Designer