Single component to connect web3 wallet in Svelte
npm install @rgottleber/svelte-wallet-connect
<script>
import { WalletConnect } from '@rgottleber/wallet-connect';
export let web3Props = {
provider: null,
signer: null,
account: null,
chainId: null,
contract: null
};
</script>
<WalletConnect bind:web3Props />
The button includes class="btn"
for styling purposes. As well as style variable. <WalletConnect {style} bind:web3Props>