Skip to content

Multi-select Combobox

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

Tags & Chips InputHTMLCSSany framework
UXUI
  • UX
  • UI
  • Research
  • Prototyping

Copy into your project

HTML
<div class="nuda-chip-combo">
  <div class="nuda-chip-combo__field">
    <span class="nuda-chip-combo__chip">UX
      <button class="nuda-chip-combo__x" aria-label="Remove UX">×</button>
    </span>
    <input class="nuda-chip-combo__input" placeholder="Search…" />
  </div>
  <ul class="nuda-chip-combo__list" role="listbox">
    <li class="nuda-chip-combo__opt">
      <span class="nuda-chip-combo__check nuda-chip-combo__check--on">✓</span>
      UX
    </li>
    <li class="nuda-chip-combo__opt">
      <span class="nuda-chip-combo__check"></span>
      Research
    </li>
  </ul>
</div>
CSS
/* Multi-select Combobox
   Input + dropdown with selected items shown as chips.
   Customize: --combo-accent */

.nuda-chip-combo {
  --combo-accent: #e4ff54;
  position: relative;
  width: 100%;
  max-width: 280px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
}

.nuda-chip-combo__field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.nuda-chip-combo__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  color: #09090b;
  background: var(--combo-accent);
  border-radius: 99px;
}

.nuda-chip-combo__x {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: #09090b;
  background: transparent;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
}

.nuda-chip-combo__x:hover { background: rgba(9, 9, 11, 0.15); }

.nuda-chip-combo__input {
  flex: 1;
  min-width: 40px;
  padding: 3px;
  color: #fafafa;
  background: transparent;
  border: 0;
  outline: 0;
}

.nuda-chip-combo__list {
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.nuda-chip-combo__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #a0a0a8;
  border-radius: 6px;
  cursor: pointer;
}

.nuda-chip-combo__opt:hover { color: #fafafa; background: #111114; }

.nuda-chip-combo__check {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  color: #09090b;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.nuda-chip-combo__check--on {
  background: var(--combo-accent);
  border-color: var(--combo-accent);
}

How to use Multi-select Combobox

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