react-eth-address
A React component to display eth addresses in a compact way and easily copy to clipboard
Installation
npm install react-eth-address
Usage
;; React;
Available Props
prop | type | description | default value |
---|---|---|---|
address |
string |
||
etherscan |
bool |
enable link to etherscan | false |
compact |
bool |
enable compact mode (first 4 and last 4 characters) | true |
className |
string |
Add extra css classes | true |
Custom Styles
Add extra classes using the className
prop for custom styling