1.0.0 • Published 7 months ago

@craydel-v3/craydel-password-field v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

CraydelPasswordField

Installation

Get the latest version by NPM:

$ npm i @craydel-v3/craydel-password-field

Component Import

Import the module chosen directly in your component

<script>
  import CraydelPasswordField from "@craydel-v3/craydel-password-field/src/CraydelPasswordField.vue";

  export default {
  components: {CraydelPasswordField}
}
</script>

Props

NameTypeDefaultDescription
idstringrandom IDSets the DOM id on the component.
placeholderstring'Enter password'Sets the component's placeholder text.
is-requiredbooleanfalsePuts component in a required state.
required-errorstring'Field is required'Puts the component in an error state and passes through the custom required error message.
max-lengthnumber100The maximum number of characters allowed in the field.
max-length-errorstring'Value cannot be longer than max-length characters'Puts the component in an error state and passes through a custom max length error message.

Usage

An example showing a password field that shows a password strength meter and a confirm password field.

<craydel-password-field show-confirm-field show-password-strength></craydel-password-field>