Skip to content

Tags Input

Forms

A chip-based input for entering multiple string values. Tags are created by pressing Enter or typing a separator character (comma by default).

atlas-tags-input

Examples

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

InputTypeDefaultDescription
value two-waystring[][] Array of tags (two-way bindable)
placeholder string | undefinedundefined Placeholder while there are no tags. Defaults to the configured tagsInput.placeholder .
maxTags number0 Maximum number of tags (0 = unlimited)
disabled booleanfalse Whether the input is disabled
errors readonly ValidationError.WithOptionalFieldTree[][] Validation errors of the bound field. Set by Signal Forms [field] .
required booleanfalse Whether a value is required. Set by Signal Forms [field] .
invalid booleanfalse Whether the field is invalid. Set by Signal Forms [field] .
touched booleanfalse Whether the user has interacted with the field. Set by Signal Forms [field] .
readonly booleanfalse Whether the field is read-only. Set by Signal Forms [field] .
pending booleanfalse Whether async validation is running. Set by Signal Forms [field] .
name string'' Name of the field. Set by Signal Forms [field] .
allowDuplicates booleanfalse Whether duplicate tags are allowed
separators string[]['Enter', ','] Separator keys that trigger tag creation (default: Enter, comma)
ariaLabel string | nullnull Accessible name when no visible label names the control (use one or the other, WCAG 2.5.3).
inputId string | undefinedundefinedid of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one.
ariaDescribedBy string | nullnull Extra ids for aria-describedby , merged with the surrounding form field's hint or error.
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
touchvoid Emits when the control loses focus, so Signal Forms marks the field touched.