Demo https://liron-navon.github.io/miro-emails-input/index.html
Start by importing the library and the stylesheet
<link rel="stylesheet" href="dist/emails-input.css"/>
<script src="dist/emails-input.js"></script>
Create an emails input object by passing a root element to render the component in, and an options object
const emailsInput = EmailsInput(rootElement, options);
emailsInput.addEmail('lironavon42@gmail.com');
Placeholder text for the input field
A list of email fields to be used when the component renders for the first time
A method that returns the list of strings as readable text (does not differentiate between valid and invalid emails)
A method that accepts a string (the email) and returns a div element that is the dom node for the email
We use jest to run the tests, simply run $ yarn test
To run the development server locally run $ yarn dev
To build the production version for the library call $ yarn build