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.
npm i @ledgerhq/crypto-icons-ui
declare type Props = {
/**
* Icon size, defaults to 16.
*/
size?: number | string;
/**
* Icon color, defaults to currentColor.
*/
color?: string;
};
import { BTC, ETH } from "@ledgerhq/crypto-icons-ui/react"
/* … */
<BTC color="green" />
<ETH size={20} color="red" />
import { BTC, ETH } from "@ledgerhq/crypto-icons-ui/native"
/* … */
<BTC color="green" />
<ETH size={20} color="red" />