Ready to use password input component with validation and formatting. The component extend the <BaseInput> component, so you can use all the props and events of the base component.
Show codeHide code
vue
Changing the locale allows to change the language of the password strength feedback and the dictionaries used to validate the password.
You can install and load dictionaries from the zxcvbn-ts package or create your own dictionary.
Show codeHide code
vue
Show codeHide code
vue
Show codeHide code
vue
Show codeHide code
vue
Name
Type
disabled
Show exampleHide example
vue
locale
The locale to use for the feedback strings and dictionary.
Show exampleHide example
vue
rounded
The radius of the input.
Show exampleHide example
vue
show
Whether the password is visible or not by default.
Show exampleHide example
vue
touched
Whether the input has been touched or not, this is used to show the feedback.
Show exampleHide example
vue
user-inputs
The user inputs to include in the calculation.
Show exampleHide example
vue
Name
Emitted Value Type
@validation
Show exampleHide example
vue
@visibility
Show exampleHide example
vue
Name
Slot Prop Type
#help
Show exampleHide example
vue
#action
Show exampleHide example
vue
#default
Show exampleHide example
vue
Name
Type
validation
Show exampleHide example
vue
showPassword
Show exampleHide example
vue
toggleVisibility
Show exampleHide example
vue
inputRef
Show exampleHide example
vue