The transaction categorization component displays a list of transactions that have been imported into Layer. By default, the component has two tabs:
  • To Review - Transactions that need to be reviewed/categorized before they will be journaled to the general ledger.
  • Categorized - Transactions that have already been categorized and journaled to the general ledger.
TransactionCategorization Optional properties and useBankTransactionsContext give more control over the transactions list:
/** Using props */
<BankTransactions
  pageSize={50}
  showCustomerVendor={true}
  showTags={true}
  showTooltips={true}
  monthlyView={true}
  filters={{
    amount: { min: 0, max: 100 },
    query: "coffee"
  }}
  mobileComponent="mobileList"
  onError={(error) => console.error('Transaction error:', error)}
/>

/** Using hook */
const { setFilters } = useBankTransactionsContext()

setFilters({ amount: { min: 0, max: 10000 } })

<BankTransactions />

Properties

pageSize
number
default:"20"
Number of transactions to display per page. Controls pagination size.
showDescriptions
boolean
default:"true"
Controls whether transaction descriptions are displayed in the transaction list.
showReceiptUploads
boolean
default:"true"
Controls whether receipt upload functionality is available for transactions.
showTooltips
boolean
default:"false"
Controls whether tooltips are displayed to provide additional information about transactions and categorization.
showCustomerVendor
boolean
default:"false"
Controls whether the customer/vendor column is displayed in the transactions table.
showTags
boolean
default:"false"
Controls whether transaction tags are displayed and can be managed in the transaction list.
showUploadOptions
boolean
default:"false"
Controls whether upload options are displayed for transactions.
monthlyView
boolean
default:"false"
Enables monthly view mode which changes the date filtering behavior to focus on monthly periods.
categorizeView
boolean
Controls whether the categorization interface is displayed. If not specified, this is automatically determined based on the business’s bookkeeping configuration.
mobileComponent
string
default:"regularList"
Indicates whether to use dedicated mobile-oriented layout for smaller screens. Possible values are mobileList or regularList. Defaults to regularList.
onError
function
Callback function that is called when an error occurs in the component. Receives a LayerError object as a parameter.
Custom function for rendering in-app navigation links. Receives LinkingMetadata as a parameter and should return a ReactNode.
stringOverrides
object
Overrides for default strings in the component.
filters
BankTransactionFilters object
Filters to apply to the transaction list.
applyGlobalDateRange
boolean
default:"false"
Indicates whether to apply the global date range filter to the transaction list. If set to true, changing the date range in any Layer component will filter the transaction list to that time range as well. Defaults to false.