Filter Chip

An applied filter showing its field and value, with a remove button.

StatusFailedBranchmainAuthorAda Park, Sam Rivera

Installation

  1. Add the registryOnce per project
  2. Add filter-chip

Usage

Give each FilterChipRemove an aria-label that names its field, such as "Remove status filter", which its tooltip shows too. Put a row of chips in a role="group" with an aria-label.

Composition

Examples

Without a remove button

Leave out FilterChipRemove for a filter that can't be removed.

DateLast 7 daysEnvironmentProduction

With a filter menu

A filter bar usually pairs the chips with a menu for adding and editing them.

StatusSucceededMemberAda ParkDateLast 7 days

Props

FilterChipRemove takes the props of a Button except variant and size.

FilterChipRemove