@ledgerhq/crypto-icons-ui
v1.4.1
Published
Crypto icons used by Ledger Live.
Downloads
2,042
Maintainers
Keywords
Readme
@ledgerhq/crypto-icons-ui
A collection of cryptocurrency icons
This package contains a collection of React and React Native cryptocurrency icon components.
Reference
Installation
Note: Do not install this package directly if your project is using @ledgerhq/react-ui
or @ledgerhq/native-ui
. Both packages include icons-ui
as a dependency and the icon components are re-exported and are accessible from there.
Package
npm i @ledgerhq/crypto-icons-ui
Usage
Props
declare type Props = {
/**
* Icon size, defaults to 16.
*/
size?: number | string;
/**
* Icon color, defaults to currentColor.
*/
color?: string;
};
React
import { BTC, ETH } from "@ledgerhq/crypto-icons-ui/react"
/* … */
<BTC color="green" />
<ETH size={20} color="red" />
React Native
import { BTC, ETH } from "@ledgerhq/crypto-icons-ui/native"
/* … */
<BTC color="green" />
<ETH size={20} color="red" />