See Coinbase Wallet Developer Docs
npm i @subwallet-connect/coinbase
type CoinbaseWalletOptions = {
darkMode: boolean // default = false
}
import Onboard from '@subwallet-connect/core'
import coinbaseWalletModule from '@subwallet-connect/coinbase'
// initialize the module with options
const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true })
// can also initialize with no options...
// const coinbaseWalletSdk = coinbaseWalletModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
coinbaseWalletSdk
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)