Balance – Composer Kit
Skip to content

Balance

Usage

The Balance component is designed to display and manage token balances seamlessly.

Enter a valid address and select a token

Props

Balance

PropTypeDescription
childrenReact.ReactNodeThe content to be rendered inside the Balance component.

BalanceText

PropTypeDescription
precisionnumber (optional)The number of decimal places to display in the balance. Defaults to 18.
...React.HTMLAttributes<HTMLParagraphElement>Any additional HTML attributes for the p tag, like className, style, etc.

BalanceOptions

PropTypeDescription
tokensToken[]An array of Token objects to display as selectable options.

Token Interface

FieldTypeDescription
namestringThe name of the token.
symbolstringThe symbol of the token.
addressstringThe contract address of the token.
decimalsnumberThe number of decimal places for the token.
iconstring?The icon for the token (optional).
chainIdnumberChain