<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: "Select tags",
whitelist: ['foo','bar','apple','banana','cherry','orange'],
enforceWhitelist: true,
dropdown: {
enabled: 0,
}
})