HTML + CSSFilters

Multi-select with chips

Pick several options with animated checkboxes and watch them appear as chips above the button.

Settings

16px
1x

Code

<div class="uv-fdm"><div class="tags"></div><button class="tg">Add filter <i><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></i></button><div class="mn"><button data-v="All"><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>All</button><button data-v="Design"><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>Design</button><button data-v="Code"><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>Code</button><button data-v="Photos"><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>Photos</button><button data-v="Video"><span class="ck"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>Video</button></div></div>

Prompt for AI

Paste it into ChatGPT, Claude or Cursor and it will adapt the block to your project with these settings, even if you don’t use React.

More in Filters

Where to use it

Job boards are a natural fit: someone ticks Remote, Part-time and Freelance and sees their choices stacked above the button, so nothing is hidden inside a closed menu. It also works for picking skills in a profile form or ingredients to leave out on a recipe site. Look for it as a multi-select dropdown with checkboxes.

The chips above are what make this usable, so leave space for them to wrap onto a second line. If people tend to pick more than five options, a sidebar with checkboxes may be kinder than a menu.