
How to Use Tagify with Livewire 4 Without Manual Synchronization
Integrate Tagify with Livewire 4, keep client and server state synchronized, and replace fragile lifecycle code with a focused integration.
Livewire Tagify turns an <input> or <textarea> in a Livewire component into a Tagify field bound to a property in both directions. Tags, a single choice from a list, or text with mentions all stay in sync with the component without custom JavaScript.
One attribute on the field, one directive in the layout.
Added and removed tags reach the property, and server-side changes reach the field, with no echo requests.
Bind ["php","laravel"] with data-direct, or keep Tagify's tag objects and their extra fields.
Many tags, one choice from a list, or text with mentions, each with its own bound value.
data-suggest-list, data-suggest-enforce, data-black-list, data-max, and data-delimiters.
Each field binds to the component around it; data-component-id is optional.
Loads with @livewireTagifyScripts, or as an ES module for Vite and other bundlers.
Mark the field and bind it; the tags follow the property both ways.
1<div wire:ignore>2 <input data-pharaonic="tagify" wire:model="skills"3 data-direct data-suggest4 data-suggest-list='@json($allSkills)'>5</div>6 7{{-- $skills = ['php', 'laravel'] --}}Quick answers about installing and using Tagify.
Tagify for Livewire components, with two-way wire:model binding for tags, select, and mix modes, suggestion lists, and automatic cleanup. It's a free, open-source Livewire package by Pharaonic.
Run composer require pharaonic/livewire-tagify in your project's root directory, then add @livewireTagifyScripts to your layout.
The latest release requires PHP 8.1+, Laravel 10 – 13 and Livewire 4. Tagify is loaded by your application.
Every Livewire major has its own line, and Composer installs the one that matches your Livewire version. See the compatibility section of the documentation.
By default it holds Tagify's tag objects, such as [{"value":"php"}]. Add data-direct and it holds plain values, such as ["php"].
Yes. Set Tagify's mode to mix for text with tags, or to select for one value, in data-options.
Yes. Import Tagify from npm and set window.Tagify, or import the package's ES module.
Yes. Tagify is open source under the MIT license, so you can use it in personal and commercial projects.
Read the Tagify documentation for setup, binding, modes, options, and examples.
Open an issue or a pull request on GitHub, or ask in the Pharaonic Discord.
Practical guides that use Livewire Tagify, or solve the problem it was built for.

Integrate Tagify with Livewire 4, keep client and server state synchronized, and replace fragile lifecycle code with a focused integration.
Read the full documentation for installation, binding and value shapes, shorthand attributes and Tagify settings, select and mix modes, dynamic fields, upgrading from 3.x, and examples.