Tags input
Tag chips with suggestions and create-as-you-type.
Max tags
Disabled
Prefilled
Suggestions & create on the fly
Focus the field to see the existing tags, type to filter them — and type something new to get a Create row. Anything added that no suggestion matches is emitted on (created), which is where the backend creates the tag and hands it back as a suggestion.
Suggestions only
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
suggestions | readonly string[] | [] | Existing tags offered as a filtered suggestion list; leave empty for a plain free-text field. |
allowCreate | boolean | true | Whether a tag no suggestion matches can be added — the entry that `created` reports. |
placeholder | string | 'Add tag…' | Placeholder text shown in the entry field. |
max | number | null | null | Maximum number of tags allowed, or `null` for no limit. |
createLabel | string | — | Prefix of the create row, before the typed text. Defaults to the `tagsInputCreate` label. |
removeLabel | string | — | Prefix of a chip's remove `aria-label`. Defaults to the `tagsInputRemove` label. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
tags | string[] | [] | Current tags. Two-way bindable with `[(tags)]`. |
disabled | boolean | false | Whether the input is disabled. Two-way bindable with `[(disabled)]`. |
Outputs
| Event | Payload | Description |
|---|---|---|
created | string | Emits a tag that was added without matching a suggestion — create it on the backend here. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.