Components
← All components

Filter

stimeo--filter

Shows/hides a collection of items by the set of active facet tokens.

The stimeo--filter controller filters a collection by facet tokens, decoupled from how those tokens are toggled (native checkboxes/radios, or button toggles such as stimeo--toggle-group). It reads the tokens of every control that is "on" (checked or aria-pressed="true"), then toggles each item's hidden based on its data-stimeo--filter-tokens; match (all/any) decides how multiple active tokens combine, and with none active every item is shown. Optional group containers are hidden once they hold no visible item, an optional empty element is revealed when nothing matches, and stimeo--filter:change is dispatched. State is re-derived from the live DOM on connect (Morph-safe). Behavior only — no styling is applied.

running
  • Margherita Pizza Vegetarian
  • Pepperoni Pizza
  • Vegetable Curry Vegetarian Spicy
  • Buffalo Wings Spicy