@layerfi/components 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -107,6 +107,24 @@ The transaction categorization component handles displaying both categorized tra
107
107
  <BankTransactions asWidget />
108
108
  ```
109
109
 
110
+ Optional properties and `useBankTransactionsContext` give more control over the transactions list:
111
+
112
+ ```tsx
113
+ /** Using props */
114
+ <BankTransactions
115
+ filters={{
116
+ amount: { min: 0, max: 100 },
117
+ }}
118
+ />
119
+
120
+ /** Using hook */
121
+ const { setFilters } = useBankTransactionsContext()
122
+
123
+ setFilters({ amount: { min: 0, max: 10000 } })
124
+
125
+ <BankTransactions />
126
+ ```
127
+
110
128
  ### Reports
111
129
 
112
130
  The reports component contains multiple accounting reports and tables, including the profit and loss table.