Overview
The Credit Utilization widget provides a simple snapshot of how many prepaid credits have been consumed relative to the total available. It gives customers an at-a-glance view of usage progress and remaining balance.Layout
The Credit utilization widget displays how much of a customer’s available credits have been used, combining numeric values with a progress bar to show consumption relative to the total allocation at a glance. The layout includes the following elements:- Header: displays credit utilization label.
- Usage counter: shows consumed vs. total credits (e.g.,
1,250 / 6,000 AI Tokens). - Remaining balance: highlights credits still available.
- Progress bar: visual indicator of utilization across the total allocation.
- Add credits button: a CTA button for prompting customers to top up their balance.

Add credits
The Add credits button is shown automatically when both of the following conditions are met:- Credit top-ups are allowed for the customer’s account.
- The customer’s current plan includes add-ons that can grant additional credits.

onAddCredits prop to hook into the button click, for example to open a custom modal, trigger analytics, or redirect to a dedicated top-up page:
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-utilization-container | Main wrapper container for the CreditUtilization widget |
stigg-credit-utilization-card | Card container with border and padding that wraps the content |
Content classes
| Class name | Description |
|---|---|
stigg-credit-utilization-title | Title or header text at the top of the widget |
Utilization display classes
| Class name | Description |
|---|---|
stigg-credit-utilization-usage | Consumed or used amount (left side of the fraction) |
stigg-credit-utilization-separator | Separator between used and total values (/) |
stigg-credit-utilization-total | Total granted amount (right side of the fraction) |
stigg-credit-utilization-suffix | Units or symbol text shown next to the fraction |
stigg-credit-utilization-remaining-label | Remaining label text |
stigg-credit-utilization-remaining-value | Remaining balance amount |
Progress bar classes
| Class name | Description |
|---|---|
stigg-credit-utilization-progress | Progress bar showing credit utilization percentage |
CTA button classes
| Class name | Description |
|---|---|
stigg-credit-utilization-add-credits-button | ”Add credits” CTA button |
stigg-credit-utilization-add-credits-icon | Icon inside the “Add credits” button |
State classes
| Class name | Description |
|---|---|
stigg-credit-utilization-value-error | Error message when balance fails to load |
stigg-credit-utilization-value-loading | Loading skeleton state |
stigg-credit-utilization-value-no-balance | Message shown when no balance data is available |
Snippet
Props
Currency or credit type identifier used to fetch credit utilization data.
Number of decimal places to display for numeric values. Defaults to no limit when not set.
Whether to display the currency symbol alongside values.
Whether to display the currency unit label (for example,
"tokens" or "credits").Callback invoked when the Add credits button is clicked. Use this to open a checkout flow, a modal, or redirect the customer to a top-up page.
Text overrides for customizing widget labels and state messages.
Texts
The default widget texts can currently be overridden using code:You can find additional text override options here
