@igloo-ui/filter
v0.5.0
Published
The filter component is a button that is used to filter the items of a list or table.
Downloads
85
Readme
Filter
The filter component is a button that is used to filter the items of a list or table.
Installation
To install @igloo-ui/filter
in your project, you will need to run the following command using npm:
npm install @igloo-ui/filter
If you prefer Yarn, use the following command instead:
yarn add @igloo-ui/filter
Usage
Then to use the component in your code just import it!
import Filter from '@igloo-ui/filter';
<Filter
onClick={() => {
setSelected(!selected);
alert('Filter was clicked');
}}
selected={selected}
>
Assigned to me (5)
</Filter>;