Tag Input

A text field that turns each entry into a removable tag.

Installation

bash
shellui-native add tag-input

Platforms: MAUI · Avalonia. Also installs icon, wrap-layout.

Usage

Basic

Enter or a comma adds a tag; Backspace in the empty field removes the last one.

Rendered with ShellUI for Blazor
maui avalonia
<ui:TagInput Tags="{Binding Platforms}" Placeholder="Add a platform..." />
Avalonia, running in your browser

MAUI and Avalonia

On Avalonia, Backspace in the empty field also removes the last tag.

API

Property Type Default Description
Tags IList<string> (MAUI) · IList<string>? (Avalonia) null The tags.
Placeholder string "Add tag..." Hint shown while empty.
MaxTags int 0 0 means no limit.
AllowDuplicates bool false Allows the same tag more than once.
Event Arguments Description
TagsChanged IReadOnlyList<string> User input only: setting Tags, or calling Add / Remove, from code doesn't raise it.
Method Description
Add(string tag) Adds a tag, as typing it and pressing Enter would.
Remove(string tag) Removes a tag.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.