Skip to content

Removable Filter Chips Bar

A copy-paste tags & chips input component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Tags & Chips InputHTMLCSSany framework
Filters:Status: ActivePlan: ProRegion: EU

Copy into your project

HTML
<div class="nuda-chip-filterbar">
  <span class="nuda-chip-filterbar__label">Filters:</span>
  <span class="nuda-chip-filterbar__chip">
    Status: Active
    <button class="nuda-chip-filterbar__x" aria-label="Remove status filter">×</button>
  </span>
  <span class="nuda-chip-filterbar__chip">
    Plan: Pro
    <button class="nuda-chip-filterbar__x" aria-label="Remove plan filter">×</button>
  </span>
  <span class="nuda-chip-filterbar__chip">
    Region: EU
    <button class="nuda-chip-filterbar__x" aria-label="Remove region filter">×</button>
  </span>
  <button type="button" class="nuda-chip-filterbar__clear">Clear all</button>
</div>
CSS
/* Removable Filter Chips Bar
   Shows applied filters with one-click removal + clear all.
   Customize: --bar-surface, --bar-danger */

.nuda-chip-filterbar {
  --bar-danger: #fca5a5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
}

.nuda-chip-filterbar__label {
  font-size: 11px;
  color: #63636e;
  margin-right: 2px;
}

.nuda-chip-filterbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  color: #fafafa;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.nuda-chip-filterbar__x {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 13px;
  color: #a0a0a8;
  background: transparent;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nuda-chip-filterbar__x:hover {
  color: var(--bar-danger);
  background: rgba(239, 68, 68, 0.12);
}

.nuda-chip-filterbar__clear {
  margin-left: auto;
  padding: 4px 10px;
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: #a0a0a8;
  background: transparent;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nuda-chip-filterbar__clear:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

How to use Removable Filter Chips Bar

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More tags & chips input components

← Browse all NudaUI components