<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]
})