financial-flag-icons
v1.0.4
Published
A package to show flag icons for currency pairs
Downloads
11
Maintainers
Readme
financial-flag-icons
npm install --save financial-flag-icons
or
yarn add financial-flag-icons
A lightweight react library to show currency pairs as flags. And it comes with full The library currently has 58 icons in 3 categories which are:
- Commodities
- Crypto Currencies
- Forex Pairs
and more are to be added
You can change the size and background color of each icon using className or using style
Example
.h-1 {
height: 1rem;
}
.w-1 {
width: 1rem;
}
//icon: string pair id
//className: string css styling class
import "./style.css";
import FinancialFlagIcon from financial-flag-icons
const App = () => <FinancialFlagIcon icon="gbpusd" className="h-1 w-1" style={{}}/>;
export default App;