# chip-selections

> This Angular Module allows you to add, remove chips in an input field as a formControl

Latest version **0.1.5** (published 2022-05-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install chip-selections
pnpm add chip-selections
yarn add chip-selections
bun add chip-selections
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2022-05-06 |
| First published | 2022-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 58.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Boni |
| Maintainers | wavecoders |
| Keywords | angular, formControl, chips, input, choice |

## Links

- npm: https://www.npmjs.com/package/chip-selections
- Homepage: https://wavecoders.ca
- npm.io page: https://npm.io/package/chip-selections

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2022-05-06
- 0.1.1 — 2022-04-12
- 0.1.0 — 2022-04-11
- 0.0.1 — 2022-04-11

## README

# Chip Selections

Angular component using chips to add selections as a formControl.
You can also add multiple entries into the field (comma delimited) and it will parse and add the chips.


## Installation
```
npm install chip-selections
```

## Scaffolding

Import the module into your project under imports

```
imports: [
    BrowserModule,
    AppRoutingModule,
    ChipSelectionsModule
  ],
```

## Selector Usage

This is the basic selector with no content, header or hiddend content

<wav-chip-selections></wav-chip-selections>

This selector uses content projection - the following selector can be projected into the component - the element does not matter.


## Inputs

The following Inputs are available

| Input | Type | Defaut | Description |
| ----- | ---- | ------ | ----------- |
| placeholder | STRING  | ''  | placeholder text |
| label       | STRING  | ''  | label for input |

## Outputs

| Event      | Type   | Description |
| ---------- | ------ | ----------- |
| change     | STRING | all chips in input as string - comma delimited |

## FormControl

`formControlName="chips"`

```
<wav-chip-selections formControlName="chips"></wav-chip-selections>

chipSelections = this.fb.group({
  chips: ['sample_1, sample_2, sample_3, sample_4'],
})
```

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