Adds filter functionality through the FilterProvider. Also comes with various predefined filters and panels for building out a filter.
Consult the Storybook for more detailed examples and documentation.
npm install @equinor/fusion-react-filter
<FilterProvider initialData={data} initialFilters={initialFilters}>
<MyFilterComponent />
<MyApp />
</FilterProvider>
Name | Type | Description |
---|---|---|
initialData |
Generic* |
Dataset for filtering. *Recommended type is TData[] or Record<string,TData> |
initialFilters |
Record<string,any> |
Filter selection added at initiation |