New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/asset-icons

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/asset-icons

Exodus assets logos

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-18.91%
Maintainers
0
Weekly downloads
 
Created
Source

Asset-icons

Package exports Raw svg files for asset logos, React components and React-native components

Installation

yarn add @exodus/asset-icons

Usage

React-Native(-web)
import assetIcons from '@exodus/asset-icons'

const BitcoinIcon = assetIcons.bitcoin

const MyComponent = () => <BitcoinIcon width="50" height="50" />
Web
  1. Setup bundler to handle imports from SVG In this example webpack file-loader is used:
import assetIcons from '@exodus/asset-icons/dist/asset-icons.web' 
import transparentAssetIcons from '@exodus/asset-icons/dist/asset-icons-transparent.web' 

const BitcoinIcon = assetIcons.bitcoin // file loader returns file paths here
const BitcoinIconTransparent = transparentAssetIcons.bitcoin

const MyComponent = () => <img src={BitcoinIcon} width="50" height="50" />
const MyComponent2 = () => <img src={BitcoinIconTransparent} width="50" height="50" />
Raw svg
import bitcoinSvg from '@exodus/asset-icons/dist/svg/bitcoin.svg'
;<img src={bitcoinSvg} />

Contributing

  1. Install deps yarn
  2. Add asset svg logo in assets/svg folder. name should match asset.name.
  3. import svg. if name starts with number add fix_ to import name and then use string in exporting object
  4. if needed adjust aliases when same icon used for another asset name

FAQs

Package last updated on 21 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc