https://github.com/weblineindia/vue-email
A Vue.js email component provides single/multiple input email field with validation.
https://github.com/weblineindia/vue-email
email-components vue vue-component vue-component-library vue-components vue-email-component vue-plugin vue-plugins vuecomponent vuecomponents vuejs vuejs-components vuejs-email-component vuejs-library vuejs-plugin vuejs-snippets
Last synced: 8 months ago
JSON representation
A Vue.js email component provides single/multiple input email field with validation.
- Host: GitHub
- URL: https://github.com/weblineindia/vue-email
- Owner: weblineindia
- License: mit
- Created: 2020-06-23T12:49:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T08:03:57.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T14:14:20.494Z (8 months ago)
- Topics: email-components, vue, vue-component, vue-component-library, vue-components, vue-email-component, vue-plugin, vue-plugins, vuecomponent, vuecomponents, vuejs, vuejs-components, vuejs-email-component, vuejs-library, vuejs-plugin, vuejs-snippets
- Language: Vue
- Homepage: https://www.weblineindia.com/communities.html
- Size: 83 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue Email Component
A Vue.js email component provides single/multiple input email field with validation.
The email value is automatically validated on blur event.
You can change validation message using props.
You can also disable email field using disable props.## Table of contents
- [Browser Support](#browser-support)
- [Demo](#demo)
- [Getting started](#getting-started)
- [Usage](#usage)
- [Available Props](#available-props)
- [Methods](#methods)
- [Want to Contribute?](#want-to-contribute)
- [Need Help / Support?](#need-help)
- [Collection of Components](#collection-of-components)
- [Changelog](#changelog)
- [License](#license)
- [Keywords](#Keywords)## Browser Support
|  |  |  |  |  |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| 83.0 ✔ | 77.0 ✔ | 13.1.1 ✔ | 83.0 ✔ | 11.9 ✔ |## Demo
[](https://github.com/weblineindia/Vue-Email/email.gif)
## Getting started
Install the npm package:
```bash
npm install vue-weblineindia-email
#OR
yarn add vue-weblineindia-email
```## Usage
Use the `` component:
```vue
import Email from "vue-weblineindia-email";
export default {
components: { Email },
data: function() {
return {
emailValue: [{ email: "" }]
};
},methods: {
onFocusEmail(event, index) {
event.target.placeholder = "";
},
onChangeEmail(value, id, index, error) {
this.emailValue[index].email = value[index].email;
},
onBlurEmail(event, placeholder) {
event.target.placeholder = placeholder;
},
onMultipleEmail() {
this.emailValue.push({
email: ""
});
}
}
};```
## Available Props
| Prop | Type | default | Description |
| ------------------ | ------------------------------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| maxlength | Number | 50 | maxlength for email |
| id | String | | email id |
| emailFormateError | String | Email is not valid | email formate validation |
| duplicateEmailError | String | Do not enter same email | duplicate email error |
| onMultipleEmail | Function | | when click on plus icon on email|
|name | String | email | email name. |
| index | Number | 0 | email index. |
| values | Array[Object] | [{email : ''}] | email default array |
| isMultiple | Boolean | true | flag to implement multiple email |
| isShowPlus | Boolean | false | flag to show plus icon for add multiple email |
| placeholder | String | Email | email placeholder |
| disabled | Boolean | false | disable input field |
| tabindex | Number | 0 | email tabIndex |## Methods
| Name | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| focus | Gets triggered when the input field receives focus. |
| blur | Gets triggered when the input field loses focus. |
| inputChange | Gets triggered every time input got changed. |
## Want to Contribute?
- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
- [Fork it](http://help.github.com/forking/).
- Create new branch to contribute your changes.
- Commit all your changes to your branch.
- Submit a [pull request](http://help.github.com/pull-requests/).---
## Need Help?
We also provide a free, basic support for all users who want to use this VueJS Email Component in their software project. In case you want to customize this Address Component to suit your development needs, then feel free to contact our [VueJS developers](https://www.weblineindia.com/hire-vuejs-developer.html).
---
## Collection of Components
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/communities.html)
---
## Changelog
Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
## License
[MIT](LICENSE)
[mit]: https://github.com/weblineindia/Vue-Email/blob/master/LICENSE
## Keywords
vue-weblineindia-email,email,vue components,vuejs,vuejs component