Tags Input
Formsatlas-tags-inputExamples
Basic
Press Enter or comma to add a tag, Backspace to remove the last one. maxTags caps the list.
Angular TypeScript
2 / 6
2 / 6 tags
Limits and separators
maxTags caps the list and shows a counter; separators lists the keys that turn the typed text into a tag (here also Space). Duplicates are ignored unless allowDuplicates is set.
angular signals
2 / 5
In a form field
The field's label names the text box and its hint explains how to add tags.
ada@example.com
Press Enter or comma after each address.
API
Generated from the library source, so it always matches the code.
AtlasTagsInputComponent atlas-tags-input
| Input | Type | Default | Description |
|---|---|---|---|
| value two-way | string[] | [] | |
| placeholder | string | undefined | undefined | tagsInput.placeholder . |
| maxTags | number | 0 | |
| disabled | boolean | false | |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| allowDuplicates | boolean | false | |
| separators | string[] | ['Enter', ','] | |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |