Skip to content

Filter bar

The toolbar above a list or table: search, quick filter chips, sort, a view switch and the result count.

Invoices toolbar

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/filter-bar.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-filterbarThe bar: wraps to two rows on narrow containers.
mn-filterbar-searchThe search field (grows).
mn-filterbar-chipsQuick filters: mn-chip buttons with aria-pressed.
mn-filterbar-endSort select and view switch, pushed to the end.
mn-filterbar-countThe result line (“128 of 2,340 invoices”): role="status" so changes are announced.

Accessibility

  • Wrap the bar in role="search" when it filters a page of results, or a <form> when it submits.
  • Quick filters are toggle buttons (aria-pressed); the count is a live status, so a screen reader hears “128 invoices” after each change.
  • Keep a visible “Clear filters” action once anything is applied.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page