Kodza

Tags Input

Free values as tags over a real text input, sent joined by commas. Enter or a comma makes a tag, a pasted list is split, a duplicate shakes its twin. Caps with data-max, checks emails.

Forms No dependencies tagschipstokensemailform Added Nov 2026
/anim/tags-input/ GitHub Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Add the Kodza Tags Input to my page.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-tags-input.html
<div class="kodza-tags" data-max="6">
  <label class="kodza-tags__box">
    <span class="kodza-tags__label">Keywords</span>
    <input class="kodza-tags__native" type="text" name="keywords" value="css, no build step" autocomplete="off">
  </label>
  <p class="kodza-tags__note">
    <span class="kodza-tags__hint">Enter or a comma. No dupes.</span>
    <span class="kodza-tags__error" aria-live="polite"></span>
  </p>
</div>

<div class="kodza-tags">
  <label class="kodza-tags__box">
    <span class="kodza-tags__label">Invite your team</span>
    <input class="kodza-tags__native" type="email" name="invite" value="amara@studio.dev" multiple autocomplete="off">
  </label>
  <p class="kodza-tags__note">
    <span class="kodza-tags__hint">Paste the whole list. We split it.</span>
    <span class="kodza-tags__error" aria-live="polite"></span>
  </p>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
While a tag is selected
  • Removes itBackspace/Delete
  • The tag before or after; past the last, back to typing←/→
  • Lets go of itEsc
In the field
  • Turns the text into a tag (a comma does too)Enter
  • At the start of the field, selects the last tagBackspace/←

More like this

More in Forms