0.2.6 • Published 2 years ago

wallet-connect-buttons v0.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Wallet Connect Buttons

A TS React library that allows you to easily connect to users Solana Wallets.

Installation Instructions

Make sure you have Node installed and you have started a Node project.

npm i wallet-connect-buttons

Style Props

attributedescriptiontype
setPublicKeyFunction called to set the public keycallback
heightHeight of the buttonstring
backgroundColorButton background colorstring
colorButton border and font colorstring
borderRadiusBorder radius of buttonstring
widthWidth of the buttonstring

Phantom Wallet Button

import { PhantomButton } from 'wallet-connect-buttons';

const [publicKey, setPublicKey] = useState('');

const button = <PhantomButton setPublicKey={setPublicKey} />;

Solflare Wallet Button

import { SolflareButton } from 'wallet-connect-buttons';

const [publicKey, setPublicKey] = useState('');

const button = <SolflareButton setPublicKey={setPublicKey} />;
0.2.6

2 years ago

0.2.4

2 years ago

0.2.25

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago