Components / Navigation / Filter chips

N5 · Navigation

Filter chips

A single-select chip row. Each chip shows how many records it covers.

When to use

  • People narrow one list by a named field.
  • The count on each chip is known.

When not to use

  • Filters combine many fields. Use a form.
  • The list is already split into tab panels.

Usage

<div class="c-chips" role="toolbar" aria-label="Filter">
  <button type="button" data-filter="All" aria-pressed="true">All<span class="c-count">12</span></button>
  <button type="button" data-filter="Blocked" aria-pressed="false">Blocked<span class="c-count">1</span></button>
</div>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
data-filterlabelAllValue matched against data-status.
aria-pressedtrue or falsefalseThe active chip.
data-statuslabel—Status on each row.

Keyboard

KeyAction
TabMoves across chips.
Enter or SpacePresses the chip.

Accessibility

Motion

Pattern origin

Pattern type: filter chips that show a count.

Related

Pill tabsData tableRule card