1.0.60 • Published 2 years ago
random123azaaaazdsf v1.0.60
React Web 3 Components
A single library for commonly used web3 react components
Preview
You can test the component library here: https://react-web3-components.com/
Usage
- Install the package
npm install --save react-web3-components
# OR
yarn add react-web3-components
- Configure your REACT_APP_RPC_URL in the your .env file. If you don't have one yet, you can get one for free here. Note: both the modal and wallet will work without a RPC URL but you won't be able to interact with the blockchain. The ens profile will fail without configuration
REACT_APP_RPC_URL=https://mainnet.infura.io/v3/yourinfuraid
- Import the component you want to use, no additional configuration is needed beyond setting the environment variable.
import { Modal } from "react-web3-components";
return <Modal isOpen={isOpen} close={() => setOpen(false)} />
All Components
Wallet
import {
Wallet, //All 3 wrapped together
MetaMaskWallet, // Only MetaMask option
CoinbaseWallet, // Only coinbase option
WalletConnectWallet, // Only Wallet Connect option
} from "react-web3-components";
return <Wallet />
Modal
import { Modal } from "react-web3-components";
const [isOpen, setOpen] = useState(false);
return <Modal isOpen={isOpen} close={() => setOpen(false)} />
Ens Profile Image
import { EnsProfileImage } from "react-web3-components";
return <EnsProfileImage ens="vitalik.eth" size={24} />
1.0.60
2 years ago
1.0.59
2 years ago
1.0.58
2 years ago
1.0.57
2 years ago
1.0.56
2 years ago
1.0.54
2 years ago
1.0.53
2 years ago
1.0.52
2 years ago
1.0.51
2 years ago
1.0.50
2 years ago
1.0.49
2 years ago
1.0.48
2 years ago
1.0.47
2 years ago
1.0.45
2 years ago
1.0.44
2 years ago
1.0.43
2 years ago
1.0.42
2 years ago
1.0.41
2 years ago
1.0.40
2 years ago
1.0.39
2 years ago
1.0.38
2 years ago
1.0.37
2 years ago
1.0.36
2 years ago
1.0.35
2 years ago
1.0.34
2 years ago
1.0.32
2 years ago
1.0.31
2 years ago
1.0.30
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago