AvaCloud API
AvaCloud App
AvaCloud Wallet as a Service
AvaCloud Wallet as a Service
  • AvaCloud Wallet as a Service SDK
  • 🚀Getting Started
    • Quickstart
  • ⚙️USAGE
    • 🪝Hooks
      • useAvaCloudWallet
      • useAuth
      • useSignMessage
      • useSignTransaction
      • useTransferTokens
      • useUserWallets
      • useChainId
    • UI Components
      • LoginButton
      • WalletButton
      • WalletDisplay
      • UserProfile
      • WalletCard
      • TokensView
      • SendView
      • ReceiveView
      • ExportView
    • 🛠️Advanced Usage
Powered by GitBook

© 2025 Ava Labs, Inc.

On this page

Was this helpful?

  1. USAGE
  2. UI Components

WalletButton

Button component for displaying wallet information and actions.

import { WalletButton } from '@avalabs/avacloud-waas-react';

function WalletSection() {
  return (
    <WalletButton
      label="My Wallet" // Optional custom label
      className="custom-class" // Optional custom class
      // All standard HTML button attributes are supported
      onClick={() => console.log('Button clicked')}
      disabled={false}
      // ... other HTML button props
    />
  );
}

Props

interface WalletButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, Pick<ButtonProps, 'color'> {
  label?: string;      
  className?: string;  
}

Features

  • Extends standard HTML button attributes

  • Supports custom button text through label prop

  • Customizable styling through className

  • Inherits color prop from ButtonProps

  • Displays wallet information and actions

  • Handles wallet state automatically

PreviousLoginButtonNextWalletDisplay

Last updated 27 days ago

Was this helpful?

⚙️