- Preview
- Code
What CreditHistory supports
- Credit and debit transactions, with reason labels
- Pending-transaction styling
- Multiple wallets, with a selector shown when there is more than one
- Pagination
- Loading skeleton state
- Empty state when there are no transactions
Where to use CreditHistory
- Customer portal billing tab
- Account settings
- Wallet detail pages
Importing CreditHistory
Rendering CreditHistory
Pagination is fully controlled: the component has no dependency on a router or URL, so you own the current page in your own state and pass it back in.wallets, selectedWalletId, and onSelectWallet:
Mapping API data into CreditHistory
Related credit widgets
Credits Widgets
Overview of both credits components.
Credit Balance
Wallet balance card showing current credits and monetary value.

