import { ProfitAndLoss } from "@layerfi/components";
…
<ProfitAndLoss>
<ProfitAndLoss.Summaries actionable={false} />
</ProfitAndLoss>
ProfitAndLoss.Summaries
Properties
Enables or disables whether clicking the revenue & expense charts open the P&L sidebar view.
Overrides for default strings in the component.Show String override options
Changes the label for revenue in the cards. Can pass in values such as “income” or another term. Deafults to “Revenue”.
Changes the label for expenses in the cards. Can pass in values such as “costs” or another term. Deafults to “Expenses”.
Changes the label for net profit in the cards. Can pass in values such as “net income” or another term. Deafults to “Net Profit”.
The size of the summary cards.
Values can be: sm
(default), lg