# react-email-chips

> This is react component to create email chips list

Latest version **0.1.20** (published 2019-10-23) · 0 weekly downloads

## Install

```sh
npm install react-email-chips
pnpm add react-email-chips
yarn add react-email-chips
bun add react-email-chips
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.20 |
| Published | 2019-10-23 |
| First published | 2019-09-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 32.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | osadan |

## Links

- npm: https://www.npmjs.com/package/react-email-chips
- Repository: https://github.com/osadan/react-email-chips
- Homepage: https://github.com/osadan/react-email-chips#readme
- Issues: https://github.com/osadan/react-email-chips/issues
- npm.io page: https://npm.io/package/react-email-chips

## Dependencies (5)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [react-scripts](https://npm.io/package/react-scripts.md) 3.1.1
- [immutability-helper](https://npm.io/package/immutability-helper.md) ^3.0.1
- [react-test-renderer](https://npm.io/package/react-test-renderer.md) ^16.9.0

## Recent versions

- 0.1.20 (latest) — 2019-10-23
- 0.1.19 — 2019-10-23
- 0.1.18 — 2019-10-23
- 0.1.17 — 2019-10-23
- 0.1.16 — 2019-10-23
- 0.1.14 — 2019-10-23
- 0.1.13 — 2019-10-23
- 0.1.12 — 2019-10-22
- 0.1.11 — 2019-10-22
- 0.1.10 — 2019-10-22
- 0.1.9 — 2019-10-22
- 0.1.8 — 2019-10-22
- 0.1.7 — 2019-10-22
- 0.1.6 — 2019-10-22
- 0.1.5 — 2019-09-24
- … 5 more at https://npm.io/package/react-email-chips/versions

## README

### Email chips component

This is react component to create email chips list

I know there is more advanced component's of this type
but this gives exactly what I need .

I forked my code from  
https://codepen.io/broneks/pen/objeqq

The component can receive the following props

- placeholder - to be placed in the input
- pattern - to validate the chips - can be empty then all chips are valid
- required - force the list to have at least one value
- title - title of the component
- save - a callback to be called on each change (add , delete)

```js
import React from 'react';
import Chips from 'react-email-chips';

function DemoComponent() {
	const pattern = new RegExp(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/);
	return (
		<div className='Demo'>
			<Chips
				chips={[{ email: 'react@gmail.com', valid: true, key: '1' }, { email: 'javascript@gmail.com', valid: true, key: '2' }, { email: 'scss@gmail.com', valid: true, key: '3' }]}
				placeholder='Add a tag...'
				save={data => console.log('new data', data)}
				pattern={pattern}
				required={true}
				title='Email Chips:'
				limit='5'
				limitNotification={data => console.log('limit notification', data)}
			></Chips>
		</div>
	);
}
```

### License

MIT Licensed.

---
_Source: https://npm.io/package/react-email-chips · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
