Magoo Component UI logo Magoo Component UI
← Catalog

Filter Chip Row

filter-chip-row molecule experimental

A horizontal row of removable active-filter pills with a "Clear all" button.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Category: Guides Product: SDK Updated: Past month Language: English
Single
In stock

Props

NameTypeReq
chips array ✓
clear_label string

Related components

How to use

behavior.js wires the controls. Clicking a chip's × hides that chip (via its `hidden` property, so it leaves the accessibility tree and never clashes with layout utilities) and dispatches a bubbling "filter:remove" CustomEvent whose detail.value is the chip's data-value. The "Clear all" button hides every chip and itself and dispatches "filter:clear". The component only manages its own chip visibility; the host page reacts to the events to actually refilter and re-render. The portable self-init reads config from the DOM — no props object is passed. behavior.js does not run in screenshots, so captures show every chip.

Use cases

list-itembanner WCAG AA SEO 20 dir: both ai-generated