Overview
The Credits Balance widget displays a customer’s current prepaid credit balance. It is a read-only component that provides visibility into how many credits remain in the account.Layout
The Credit balance widget displays the customer’s current available credit amount in a clear and prominent format. The layout includes the following elements:- The customer’s current credit balance in tokens (or other configured unit).
- The balance updates in real time after purchases or top-ups.

Customization
No-code widget designer
The Stigg app offers a no-code widget designer, which allows you to control the widget colors, typography and layout.Custom CSS
For more advanced customization, custom CSS can be applied using the widget designer of the Stigg app. Alternatively, custom CSS can also be applied using code. Below you can find a list of the supported CSS classes:Main container classes
| Class name | Description |
|---|---|
stigg-credit-balance-container | Main wrapper container for the entire CreditBalance widget |
stigg-credit-balance-card | Card container with border and padding that wraps the content |
Content classes
| Class name | Description |
|---|---|
stigg-credit-balance-title | Title/header text at the top of the widget |
stigg-credit-balance-value-amount | Main balance amount (large number) |
stigg-credit-balance-value-suffix | Units or symbol text next to the amount |
stigg-credit-balance-value-error | Error message when balance fails to load |
stigg-credit-balance-value-loading | Loading skeleton state |
stigg-credit-balance-value-no-balance | Message shown when no balance data is available |
Snippet
Props
currencyId(required) — Currency or credit type identifier used to fetch the credit balancedecimalPlaces(optional) — Number of decimal places to display for the balance valueshowSymbol(optional) — Whether to display the currency symbol next to the balanceshowUnits(optional) — Whether to display the currency unit label (for example,"tokens"or"credits")localization(optional) — Text overrides for customizing widget labels, messages, and statesclassName(optional) — Additional CSS class applied to the root container
