Overview
The Auto-recharge configuration widget allows customers to configure how credits are automatically recharged when their balance runs low. It enables users to define recharge thresholds, target balances, and optional monthly spending limits, as well as to enable or disable auto-recharge entirely. The Auto-recharge configuration widget is designed to be used together with the Auto-recharge status widget.Layout
Auto-recharge settings include controls that automatically top up your balance when it falls below a defined threshold. The auto-recharge configuration includes the following options:- A toggle to enable or disable auto-recharge.
- A balance threshold that determines when a recharge is triggered.
- A target balance that the system recharges up to once the threshold is crossed.
- An optional monthly spending limit to cap total recharge spend.
- A warning message when saving will immediately trigger a recharge due to the current balance.
- Save and Cancel actions to apply or discard changes.

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:| Class name | Description |
|---|---|
stigg-automatic-recharge-form-container | Auto-recharge configuration form container |
stigg-automatic-recharge-form-card | Card wrapper for the form |
stigg-automatic-recharge-form-title | Form title |
stigg-automatic-recharge-form-subtitle | Form subtitle or description |
stigg-automatic-recharge-form-enable-checkbox | Enable/disable auto-recharge checkbox |
stigg-automatic-recharge-form-threshold-field | Threshold input field wrapper |
stigg-automatic-recharge-form-threshold-input | Threshold input element |
stigg-automatic-recharge-form-target-field | Target balance field wrapper |
stigg-automatic-recharge-form-target-input | Target balance input element |
stigg-automatic-recharge-form-spend-limit-field | Spend limit field wrapper |
stigg-automatic-recharge-form-spend-limit-input | Spend limit input element |
stigg-automatic-recharge-form-warning | General warning alert |
stigg-automatic-recharge-form-spend-limit-warning | Spend limit warning message |
stigg-automatic-recharge-form-actions | Action buttons container |
stigg-automatic-recharge-form-cancel-button | Cancel button |
stigg-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
Texts
The default widget texts can currently be overridden using code:You can find additional text override options here
