<div class="wrapper">
<input type="text">
</div>
body{
  padding: 0;
  margin: 0;
}
.wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-left: 20px;
  padding-right: 20px;

}

.tagify{
  min-width:240px;
  border-radius:4px;
  --tag-pad :.2rem .4rem;
  
}
View Compiled
const inputElem = document.querySelector('input') 
const tagify = new Tagify(inputElem, {
    placeholder: "Type foo... bar...",
    whitelist: ['foo', 'bar', 'and baz', 0, 1, 2]
})

External CSS

  1. https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/tagify/4.27.0/tagify.min.js