npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-currency-converter-plus

v1.1.1

Published

A lightweight and customizable currency converter component for React applications. Easily integrate currency conversion functionality with customizable dropdowns for selecting currencies and an input for the amount.

Maintainers

niranjankushwahaniranjankushwaha

Keywords

reactcurrency-converterreact-currency-convertercurrencyconverterexchangemoneyforexfinancecurrency conversionexchange ratereact componentcurrency exchangemoney converterforeign exchangecurrency calculatorcurrency ratescurrency swapcurrency tradingdigital currencycryptocryptocurrencyblockchainfiat currencycurrency pairexchange platformfinancial toolcurrency apireal-time ratescurrency datacurrency marketinternational currencycurrency symbolscurrency valuecurrency conversion apicurrency exchange ratescurrency conversion ratescurrency exchange calculatorcurrency conversion calculatorglobal currencyworld currencycurrency listcurrency codecurrency formatcurrency denominationcurrency conversion toolcurrency exchange toolcurrency exchange serviceonline currency converterweb currency converterreact currency libraryreact currency packagereact exchange rate componentreact finance componentreact forex componentcurrency analyticscurrency insightscurrency trendscurrency forecastcurrency historical datacurrency comparisonmulti-currencycross-currencycurrency conversion functionalitycurrency exchange functionalitycurrency utilitiescurrency widgetscurrency exchange widgetsfinancial applicationsecommerce currencypayment currencytransaction currencycurrency conversion for developerscurrency exchange for developerscurrency API integrationcurrency conversion API integrationcurrency exchange API integrationreact native currency convertermobile currency converterdesktop currency convertercurrency conversion solutionscurrency exchange solutionscurrency managementcurrency operationscurrency transactionscurrency exchange operationscurrency conversion operationscurrency rate updateslive currency ratescurrency exchange rates APIcurrency conversion rates APIcurrency rate trackingcurrency rate monitoringcurrency exchange rate trackingcurrency exchange rate monitoringcurrency newscurrency updatescurrency alertscurrency notificationscurrency rate alertscurrency rate notificationscurrency exchange alertscurrency exchange notificationscurrency rate comparisoncurrency exchange comparisoncurrency rate analysiscurrency exchange analysiscurrency rate chartscurrency exchange chartscurrency rate graphscurrency exchange graphscurrency rate historycurrency exchange historycurrency rate trendscurrency exchange trends

Readme

React Currency Converter

A lightweight and customizable currency converter component for React applications. Easily integrate currency conversion functionality with customizable dropdowns for selecting currencies and an input for the amount.

Features

  • Customizable currency dropdowns for both "from" and "to" currencies.
  • Customizable button text for performing the conversion.
  • Restriction on the number of digits allowed in the amount input.
  • Callback function to handle the conversion logic externally.

Installation

To install the React Currency Converter, run the following command in your project directory:


npm install react-currency-convert

or if you use yarn:


yarn add react-currency-convert

Usage

First, import the CurrencyConverter component into your React component file:


import React from 'react';
import { CurrencyConverter } from 'react-currency-convert';

Then, use the CurrencyConverter component in your React application. You must provide a callback function (onConvert) to handle the conversion logic:


import React from 'react';
import { CurrencyConverter } from 'react-currency-convert';

const App = () => {
  const handleConversion = (fromCurrency, toCurrency, amount) => {
    // Implement your conversion logic here
    console.log(`Convert ${amount} from ${fromCurrency} to ${toCurrency}`);
  };

  return (
    <div>
      <CurrencyConverter onConvert={handleConversion} />
    </div>
  );
};

export default App;

Props

The CurrencyConverter component accepts the following props for customization:

  • onConvert: A function that is called when the conversion button is clicked. It receives three arguments: fromCurrency, toCurrency, and amount.
  • fromCurrencyDropdownData (optional): An array of strings representing the currencies available in the "from" dropdown. Default is ["USD", "EUR", "INR", "GBP"].
  • toCurrencyDropdownData (optional): An array of strings representing the currencies available in the "to" dropdown. Default is ["USD", "EUR", "INR", "GBP"].
  • allowedAmountDigitsCount (optional): A number representing the maximum number of digits allowed in the amount input. Default is 7.
  • convertCurrencyBtnText (optional): A string to customize the text of the conversion button. Default is "Convert Currency".

Example

Here's a complete example showing how to use the CurrencyConverter component with custom props:


import React from 'react';
import { CurrencyConverter } from 'react-currency-convert';

const App = () => {
  const handleConversion = (fromCurrency, toCurrency, amount) => {
    // Conversion logic
    alert(`Converting ${amount} from ${fromCurrency} to ${toCurrency}`);
  };

  return (
    <CurrencyConverter
      onConvert={handleConversion}
      fromCurrencyDropdownData={["USD", "CAD", "EUR"]}
      toCurrencyDropdownData={["INR", "JPY", "GBP"]}
      allowedAmountDigitsCount={5}
      convertCurrencyBtnText="Exchange"
    />
  );
};

export default App;

Contributing

Contributions are welcome! Please feel free to submit a pull request or create an issue for any bugs or feature requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to adjust the content to better fit your component's functionality or to add any additional sections that you think might be helpful for users.