<tag-input></tag-input>
<div>tags: <span id="tags"></span></div>
<script src="https://naoki-tomita.github.io/iegulti/components/tag-input/dist/index.js?9"></script>
const tagsEl = document.querySelector("#tags");
document.querySelector("tag-input")
.addEventListener("complete-tag", (e) => {
console.log(e.detail.tags);
tagsEl.innerText = e.detail.tags.join(", ");
})
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.