Tags Input
Turns what is typed into removable tags, with the keyboard model of React Aria's TagGroup and announcements of removals.
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.
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.