Turns inputs or textareas into tag fields with whitelist support, suggestions, validation, and bindings for React, Vue, and Angular.
Overview
Tagify replaces a plain input or textarea with an interactive tags UI. It ships for vanilla JavaScript plus React, Vue, and Angular, with CDN or npm installation and a required stylesheet.
Tags can be created from typing, delimiters, or paste; whitelists and blacklists control allowed values. Suggestions support fuzzy search, aliases, AJAX-loaded lists, and dropdown templates. Modes include single-value fields, mixed text-and-tags content, and read-only or per-tag locks.
Validation uses regex patterns or custom functions, including async checks with loading states on tags. Users can edit tags, drag to reorder with an external drag-and-drop helper, and sync values back to the original form control as JSON or custom delimited strings.
Customization covers HTML templates for wrappers, tags, and dropdown items, CSS variables for theming, RTL alignment, and many DOM events. The component targets modern evergreen browsers and keeps the underlying input value in sync for form submission.
Key features
- Input and textarea tagging
- React Vue Angular wrappers
- Whitelist and blacklist
- AJAX suggestion loading
- Mixed text and tag mode
- Regex and function validation
- Editable and draggable tags
- Custom DOM templates
Use cases
- Multi-value form fields
- Email or skill pickers
- Film titles with commas
- Social mention-style editors