Wallet – Composer Kit
Skip to content

Wallet

Usage

The Wallet component provides functionality for connecting wallets and displaying user information.

Props

Connect

PropTypeDescription
childrenReact.ReactNodeThe content inside the component, typically Avatar and Name.
labelReact.ReactNodeThe text or element to display on the connect button. Default is "Connect".
onConnect() => void (optional)A callback function that is triggered when the connection is successful.

Avatar

PropTypeDescription
...React.HTMLAttributes<HTMLDivElement>Inherits all standard div attributes (like className, style, etc.).

Name

PropTypeDescription
isTruncatedboolean (optional)Whether the name should be truncated (e.g., for display in small spaces). Default is false.
...React.HTMLAttributes<HTMLSpanElement>Inherits all standard span attributes (like className, style, etc.).