Skip to main content
The reports view combines the three most common reports into a single page, including the P&L, Balance Sheet, and Cash Flow Statement. These are the tabular forms of these reports rather than interactive charts. Reports View
import { Reports } from '@layerfi/components'

<Reports
  stringOverrides={{
    title: 'My reports title',
    downloadButton: {
      downloadButtonText: 'Export',
    },
  }}
  enabledReports={['profitAndLoss']}
  renderInAppLink={convertLinkingMetadataToLink}
/>

Properties

showTitle
boolean
default:"true"
Controls whether the page title/header is displayed.
enabledReports
ReportType[]
Array of reports to enable. Defaults to all three reports. Available values: ['profitAndLoss', 'balanceSheet', 'statementOfCashFlow']. If more than one report is enabled, view will include a tabbed interface to switch between reports.
Custom function for rendering in-app navigation links. See the In-App Linking guide for details.
comparisonConfig
ProfitAndLossCompareConfig
Configuration for P&L tag comparison mode.
profitAndLossConfig
TimeRangePickerConfig
statementOfCashFlowConfig
TimeRangePickerConfig
stringOverrides
ReportsStringOverrides