Overview

tng-chips is a multi-value input that implements ControlValueAccessor. You can add items from an options dropdown (with (search)) and/or allow free-text entry. Value is T[]. Optional #chipTpl and #optionTpl customize chip and dropdown display.

CVA options + search allowFreeText chipTpl / optionTpl Standalone
Reactive Forms

Quick example

Basic (select from options)
HTMLTSCSS

<form [formGroup]="form">
  <tng-chips
    formControlName="countries"
    [options]="options()"
    placeholder="Add countries…"
    [displayWith]="displayCountry"
    [allowFreeText]="false"
    (search)="onSearch($event)"
  />
</form>

Selected: 0 countries

Features

options + displayWith

Dropdown options; displayWith for chip and list text. Form value is T[].

allowFreeText + parse

When allowFreeText is true, Enter adds the typed string (via parse).

chipTpl / optionTpl

Optional templates for chip display and dropdown option rows.