1.0.8 • Published 1 year ago

@craydel-v3/craydel-phone-field v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

CraydelPhoneField

Installation

Get the latest version by NPM:

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

Component Import

Import the module chosen directly in your component

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

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

Props

NameTypeDefaultDescription
idstringrandom IDSets the DOM id on the component.
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.
country-codestringundefinedSets the default country code.
placeholderstringundefinedSets the placeholder for the component.
disabledbooleanfalseDisables the component.
fetch-countrybooleanfalseGets the default country code via https://ipwho.is

Usage

An example showing a phone field.

<craydel-phone-field fetch-country></craydel-phone-field>
1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago