Components
← All components

Tags Input

stimeo--tags-input

Free-input chips: type and press Enter or a delimiter to add removable tags.

The stimeo--tags-input controller turns a text input into a tags / chips field. Enter or the configured delimiter commits the trimmed input as a tag; empty, duplicate (unless allowDuplicates), and over-limit (max) additions are rejected with stimeo--tags-input:reject. Tags render from a template, each with a Remove {label} button, and a fields container mirrors the set as named hidden inputs for form submission. The remove buttons are one roving Tab stop: ArrowLeft/ArrowRight move between them (right past the end returns to the input), Delete/Backspace delete the focused tag, and Backspace on an empty input deletes the last. Removing a tag moves focus to a neighbor, else back to the input. Every change dispatches stimeo--tags-input:change.

running
    Press Enter or comma to add. Backspace on an empty field removes the last.

    Keyboard

    KeyAction
    Enter / Delimiter Commit the typed text as a tag.
    Backspace (empty input) Delete the last tag.
    ← / → Move between tag remove buttons (right past the end returns to input).
    Delete / Backspace (on a tag) Delete the focused tag.