@mikelockzrimble/network-indicator
v0.0.14-alpha.0
Published
Rimble Utils is part of an array of tools to help web3 dApp developers launch products faster and with better UX.
Readme

@rimble/network-indicator
Web3 React component built with Rimble UI that will display the current ethereum network name based on a given network ID.
Installation
Install the package in your project directory with:
// with npm
npm install @rimble/network-indicator
// with yarn
yarn add @rimble/network-indicatorUsage Example
import NetworkIndicator from '@rimble/network-indicator';
<NetworkIndicator currentNetwork={3} requiredNetwork={1} />;Props
| Name | Type | Default | Description |
| ----------------- | ------- | ------- | ---------------------------------------------------------- |
| currentNetwork | integer | none | The network ID that the user is connected to, if available |
| requiredNetwork | integer | none | The network ID that the dApp requires to function |
Documentation
Issues
Open an issue for any bugs or feature requests
Contributing
We are open source and welcome your contributions !
License
MIT © ConsenSys
