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

LoginButton

Button component for initiating the login flow.

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

function AuthSection() {
  return (
    <LoginButton
      label="Connect 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 LoginButtonProps 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 K2ButtonProps

  • Handles wallet connection flow automatically

PreviousUI ComponentsNextWalletButton

Last updated 27 days ago

Was this helpful?

⚙️