Skip to main content

Web Components

AppKit's web components are custom and reusable HTML tags. They will work across modern browsers, and can be used with any JavaScript library or framework that works with HTML.

info

Web components are global html elements that don't require importing.

List of optional properties for AppKit web components

<appkit-button />

VariableDescriptionType
disabledEnable or disable the button.
boolean
balanceShow or hide the user's balance.
'show' or 'hide'
sizeDefault size for the button.
'md' or 'sm'
labelThe text shown in the button.
string
loadingLabelThe text shown in the button when the modal is open.
string

<appkit-account-button />

VariableDescriptionType
disabledEnable or disable the button.
boolean
balanceShow or hide the user's balance.
'show' or 'hide'

<appkit-connect-button />

VariableDescriptionType
sizeDefault size for the button.
'md' or 'sm'
labelThe text shown in the button.
string
loadingLabelThe text shown in the button when the modal is open.
string

<appkit-network-button />

VariableDescriptionType
disabledEnable or disable the button.
boolean

<appkit-wallet-button />

Using the wallet button components, you can directly connect to the top 20 wallets, WalletConnect QR and also all the social logins. This component allows to customize dApps, enabling users to connect their wallets effortlessly, all without the need for the traditional modal.

Follow these steps to use the component:

  1. Install the package:
npm i @reown/appkit-wallet-button
  1. Import the library in your project:
import '@reown/appkit-wallet-button/react'
  1. use the component in your project:
<appkit-wallet-button wallet="metamask" />

Options for wallet property

TypeOptions
QR Code
walletConnect
Wallets
metamask, trust, coinbase, rainbow, coinbase, jupiter, solflare, coin98, magic-eden, backpack, frontier and phantom
Social logins
google, github, apple, facebook, x, discord and farcaster