svelte-currency-formatter
v2.1.0
Published
Port from react-virtualized-auto-sizer - High-order component that automatically adjusts the width and height of a single child.
Downloads
9
Maintainers
Readme
⚖️ svelte currency formatter
💻 DEMO!
Usage
Simple
import Currency from 'svelte-currency-formatter'
;<Currency quantity={45685} currency="EUR" />
Complex
import Currency from 'svelte-currency-formatter'
;<Currency
quantity={45685} // Required
currency="USD" // Optional (USD by default)
locale="en_EN" // Optional
pattern="##,### !" // Optional
decimal="," // Optional
group="." // Optional
/>