yearn-web-tokens
v0.0.2
Published
Logo of tokens use in web ecosystem as react components
Downloads
5
Readme
yearn-web-assets
Tokens assets for the Yearns web projects.
Install
yarn add @yearn/yearn-web-assets
Usage
import React, { Component, useState } from 'react'
import Token from 'yearn-web-tokens'
class Example extends Component {
render() {
return (
<Token
format={'svg'} //svg or img
address={'0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9'} // token address, checksummed
chainID={'42161'} // chain id
imgSize={'32'} // only if format is img, default is 128, can be 32 or 128
/>
)
}
}