1.0.5 • Published 2 years ago

next-crypto-icons v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Crypto Icons for Next.js

Uses the cryptocurrency-icons package, served from the JsDelivr CDN, to render a cryptocurrency icon easily.

Given a name, style, and size, the <CryptoIcon /> component will render a next/image with a given { width, height } = size and a src of:

`https://cdn.jsdelivr.net/npm/cryptocurrency-icons@latest/svg/${style}/${name}.svg`;

Example

// from demo/index.tsx

const DemoHome = () => {
  return (
    <div style={{ display: 'flex', gap: '2rem', padding: '2rem' }}>
      <CryptoIcon name="btc" />
      <CryptoIcon name="eth" />
      <CryptoIcon name="sol" />
    </div>
  );
};

export default DemoHome;

Renders the following 3 icons:

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago