CSS Layout - Most popular layouts and patterns that can be built with CSS | Product Hunt Embed
You can use a close button to remove a chip.
CSS
<div style="
    /* Center the content */
    align-items: center;
    display: inline-flex;
    justify-content: center;

    /* Background color */
    background-color: rgba(0, 0, 0, .1);

    /* Rounded border */
    border-radius: 9999px;

    /* Spacing */
    padding: 4px 8px;
">
    <!-- Content -->
    <div style="margin-right: 4px;">
        ...
    </div>

    <!-- The close button -->
    <!-- See https://csslayout.io/patterns/close-button -->
    ...
</div>

Related patterns

Close button

Subscribe to the newsletter for the latest layouts or patterns. No spam. Ever!