Library to get the most popular payment icons
Icons live demo: https://twltwl.github.io/react-pay-icons/
npm i react-pay-icons
Using this component on your project.
import { Visa } from "react-pay-icons";
<Visa style={{ margin: 10, width: 100 }} />;
import { Btc } from "react-pay-icons/lib/crypto";
<Btc style={{ margin: 10, width: 100 }} />;
Big thanks to https://github.com/spothq/cryptocurrency-icons
Below the list of the available props:
Name | Type | Default | Description |
---|---|---|---|
style | Object | CSS style object | |
className | String | HTML class for you to customize with your own CSS | |
...prop | * | Any other prop will be propagated on the SVG element |
See https://twltwl.github.io/react-pay-icons/
Place svg file in ./IconsSource and follow build step
# Build
npm run icons
npm run dev
# open localhost:8080