FilterControl

A Button to control filter configuration annotated with counts of total and matches.

NOTE: This component comes from the grommet-addons repository. You will need to add a dependency to that repository in order to use it.

Properties

filteredTotal {number}
How many items match after filtering.
onClick function () {...}
Function that will be called when the user clicks the control.
unfilteredTotal {number}
How many items there are without any filtering.

Usage

import FilterControl from 'grommet-addons/components/FilterControl';

<FilterControl unfilteredTotal={100}
  filteredTotal={50}
  onClick={...} />