1.0.4 • Published 3 years ago
antd-money v1.0.4
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.