Skip to content

Tags Input

Turns what is typed into removable tags, with the keyboard model of React Aria's TagGroup and announcements of removals.

Styled with CSS Tailwind

Keywords

Enter or a comma adds the typed text; a pasted comma-separated list becomes several tags. The tags are a role="grid" of rows: ← or Backspace in the empty input moves to the last tag, ← / → / Home / End move between tags, Backspace / Delete remove the focused one (and announce it), → past the last returns to the input. The input stays the one tab stop.

blazor
headless
blazor, headless

E-mail recipients with rules

Validate decides what is a tag (here: something with an @), Max caps the count and duplicates are refused; a refused tag stays in the input and OnTagRejected says why. AddOnBlur adds what is left when the input is left.

An unhandled error has occurred. Reload 🗙