Overview
The Auto-recharge widget displays the customer’s current auto-recharge configuration and monthly spend status. It provides a read-only summary of when auto-recharge is triggered, the target balance after recharge, and how much of the monthly spending limit has been used.Layout
- Indicates whether auto-recharge is active or inactive.
- Shows the configured recharge rule (for example, recharge to 50 coins when the balance drops below 31).
- Displays the current monthly spend relative to the configured monthly limit.
- Includes a Manage action that opens the auto-recharge settings modal.
Customization
- Brand via the no-code widget designer.
- Use custom CSS when deeper styling is required.
Main container classes
stigg-auto-recharge-status-container— Outer container for the Auto Recharge widget
Status widget classes
stigg-auto-recharge-status— Main status card containerstigg-auto-recharge-status-error— Error state variant of the status cardstigg-auto-recharge-title— Widget title textstigg-auto-recharge-status-chip— Status indicator chip (Active / Inactive)stigg-auto-recharge-manage-button— Manage auto-recharge buttonstigg-auto-recharge-description— Description or helper textstigg-auto-recharge-progress— Progress bar for spend trackingstigg-auto-recharge-spend— Spend amount textstigg-auto-recharge-empty— Empty state containerstigg-auto-recharge-empty-text— Empty state message text
Configuration form classes
stigg-automatic-recharge-form-container— Auto Recharge configuration form containerstigg-automatic-recharge-form-card— Card wrapper for the formstigg-automatic-recharge-form-title— Form titlestigg-automatic-recharge-form-subtitle— Form subtitle or descriptionstigg-automatic-recharge-form-enable-checkbox— Enable/disable auto-recharge checkboxstigg-automatic-recharge-form-threshold-field— Threshold input field wrapperstigg-automatic-recharge-form-threshold-input— Threshold input elementstigg-automatic-recharge-form-target-field— Target balance field wrapperstigg-automatic-recharge-form-target-input— Target balance input elementstigg-automatic-recharge-form-spend-limit-field— Spend limit field wrapperstigg-automatic-recharge-form-spend-limit-input— Spend limit input elementstigg-automatic-recharge-form-warning— General warning alertstigg-automatic-recharge-form-spend-limit-warning— Spend limit warning messagestigg-automatic-recharge-form-actions— Action buttons containerstigg-automatic-recharge-form-cancel-button— Cancel buttonstigg-automatic-recharge-form-save-button— Save button
Snippet
Props
customerId(required) — Customer identifier used to fetch auto-recharge statuscurrencyId(required) — Currency or credit type identifiercurrencyUnit(optional) — Display name for the currency (for example,"Credits"or"Stigg Coins")billingCurrency(optional) — Billing currency symbol (for example,"$")onManageClick(optional) — Callback triggered when the Manage button is clickedclassName(optional) — Additional CSS class applied to the root containerlocalization(optional) — Text overrides for customizing widget labels and messages
