TransactionTypeBadge

Domain

Colour-coded badge for transaction type: DEPOSIT, WITHDRAW, TRANSFER, PAYMENT, REFUND, FX, FEE.

All types

Preview
DepositWithdrawTransferPaymentRefundFXFee
Code
{(['DEPOSIT', 'WITHDRAW', 'TRANSFER', 'PAYMENT', 'REFUND', 'FX', 'FEE'] as const).map((t) => (
  <TransactionTypeBadge key={t} type={t} />
))}

Small size

Preview
DepositPaymentRefund
Code
<TransactionTypeBadge type="DEPOSIT" size="sm" />
<TransactionTypeBadge type="PAYMENT" size="sm" />
<TransactionTypeBadge type="REFUND" size="sm" />
Sourcemodules/domains/fintech/transaction/TransactionTypeBadge.tsx