Select Or Create Field For Tags and Labels without jQuery
I’m looking to explore a feature for a CRM that allows a user to add tags or labels to a customer record. They might not have the tags or labels in the database and I think it would be more intuitive to have an action like the example interface below where you can say Add New Tag which will submit and have it added to the Tags list.
I’ve had create success using jQuery plugins like selectize.js and select2, however I’m trying to move away from jQuery as a crutch. I wonder if that is something a Stimulus controller should controller but I haven’t been able to find any reference to a select or create all-in-one that allows users to add new tags or labels to a customer. Does anyone have any materials I could reference for this?