antd-input-money
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

antd-money

React money/currency input using ant design.

Usage

<MoneyInput 
    prefix={"$"} 
    commaSeperator={true} 
    onChange={inputChanged} 
    defaultValue={12.50}
/>

Attributes

  • prefix: Currency sign as string. e.g. $, £, TRY etc.
  • commaSeperator: A boolean flag. If true, comma is used as decimal seperator and point is used as thousand seperator. If false or undefined, point is used as decimal seperator and comma is used as thousand seperator.
  • onChange: When value is changed, onChange is called with numeric value of the input e.g. $1,234.56 returns within the event handler as 1234.56
  • defaultValue Default value of the input. e.g. 12.50 or 20.3 etc.

https://github.com/yeulucay/antd-money

Readme

Keywords

Package Sidebar

Install

npm i antd-input-money

Weekly Downloads

3

Version

1.0.6

License

MIT

Unpacked Size

57 kB

Total Files

26

Last publish

Collaborators

  • pablo.botelho