Magoo Component UI logo Magoo Component UI
← Catalog

Saved Filters

saved-filters molecule experimental

A row of saved search-filter presets as toggleable pills, with a button to save the current query as a new preset.

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
NoCounts

Props

NameTypeReq
filters array ✓
save_label string

Related components

How to use

A vanilla-JS single-select toggle group. Each preset pill carries data-active and aria-pressed; the active look is driven by data-[active=true] utilities so it renders in screenshots without JS. behavior.js makes the clicked pill active, clears the rest, and fires filter:apply with { value, label }; the save button fires filter:save.

Use cases

filterlist WCAG AA SEO 15 dir: both ai-generated