@hautechai/webui.userbalance
v2.1.27
Published
Specialized component for displaying user account balance information with formatting and action options.
Readme
UserBalance
Purpose
Specialized component for displaying user account balance information with formatting and action options.
Installation
# pnpm (recommended)
pnpm add @hautechai/webui.userbalance
# npm
npm install @hautechai/webui.userbalance
# yarn
yarn add @hautechai/webui.userbalanceParameters
| Parameter | Type | Description | | ----------- | ---------------- | ------------------------------------------------------- | | balance | number | string | Required current balance amount | | currency | string | Optional currency symbol or code (e.g., "$", "USD") | | format | string | Optional number formatting style | | actions | React.ReactNode | Optional action buttons (e.g., "Add Funds", "Withdraw") | | pending | number | string | Optional pending transaction amount | | showHistory | boolean | Optional flag to show balance history link |
May include additional parameters for styling and transaction display.
Usage Example
<UserBalance balance={1250.75} currency="$" format="currency" pending={25.0} actions={<Button label="Add Funds" />} />