Ownable Install
Install Chips from the TailNG registry with the shadcn-like flow. This copies source files into your app so your team can own and evolve the implementation locally.
Install from registry
Run from your Angular workspace root.
pnpm
pnpm dlx tailng add chipsnpx
npx tailng add chipsGenerated files
The command scaffolds local files under src/app/tailng-ui/chips.
src/app/tailng-ui/chips/tng-chips-primitive.tssrc/app/tailng-ui/chips/tng-chips.tssrc/app/tailng-ui/chips/tng-chips.htmlsrc/app/tailng-ui/chips/tng-chips.csssrc/app/tailng-ui/chips/index.ts
Import in your feature module/component
Imports
import { TngChips, TngChipsPrimitive } from './tailng-ui/chips';
Usage
Template usage
<tng-chips
[values]="selectedTags()"
(valuesChange)="selectedTags.set($event)"
ariaLabel="Selected tags"
>
@for (tag of selectedTags(); track tag) {
<span tngChip [tngChipValue]="tag" [tngChipLabel]="tag">
<span>{{ tag }}</span>
<button tngChipRemove type="button">×</button>
</span>
}
</tng-chips>