Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamthesiz/email-autocomplete-input

⚡️ Email autocomplete input
https://github.com/iamthesiz/email-autocomplete-input

Last synced: 1 day ago
JSON representation

⚡️ Email autocomplete input

Awesome Lists containing this project

README

        

Email Autocomplete Input
========================

#### Bult using `mobx`, and `react`

Play with it [here](https://alex-cory.github.io/email-autocomplete-input/)!

Installation
------------

`yarn add email-autocomplete-input` or `npm i -S email-autocomplete-input`

Usage
-----
```js
import EmailAutocompleteInput from 'email-autocomplete-input'
import { render } from 'react-dom'
import { observable } from 'mobx'

const email = observable('')

render(
email.set(value)} />,
document.body
)
```

Props
-----
| Props | Description |
| ---------- | ---------------------------------------------------------------------------------------- |
| `validate` | This will highlight the input with a red, yellow, or green border if the email is valid. |
| `domains` | This will add additional domains to the autocomplete. |