I would use a listview, style it horizontally (‘horizontal-listview’), use a dynamic class to add the images (for example ‘folders’), wrap the text in a container with a class (‘tag-item’) to set background and the border-radius, and use the on click event to delete them. The below css is a starting point.
.horizontal-listview ul {
    display: flex;
}
.tag-item {
    background-color: #f8f8f8;
    border-radius: 0.5em;
    padding: 0.5em;
}
.folders::before {
    width: 2em;
    height: 1.5em;
    display: inline-block;
    content: '';
    background-image: url("/img/System$WorkflowImages$WorkflowCallMicroflow.svg");
    background-size: 1.7em;
    background-repeat: no-repeat;
}