0.1.1 • Published 1 year ago

frx-converterwidget-test v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Converter Widget (WIP)

THIS IS A WORK IN PROGRESS. Package will be updated in the near future.


The Converter widget is a tool for 3rd party collaborators, import it in your project like shown below.

import { CurrencyConverterComponent } from "frx-converterwidget-test/dist";

Prerequisites

NodeJS

NPM command line tool. This is installed automatically when you install NodeJs.

Horizontal/Vertical setting

The Widget comes with two modes, default or 'vertical'. You can ignore this parameter if you want the default view, otherwise pass in the parameter like this:

<CurrencyConverterComponent verticalMode={true} />

Initial Currencies

(This is a work in progress, the package does not yet support change of initial currencies but it will in the next update.) The initial currency chosen will be handled with the currency code passed in as props like so:

<CurrencyConverterComponent initialFromCurrency="SEK" initialToCurrency="EUR" />