# antd-money

> React money input using ant design

Latest version **1.0.4** (published 2021-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install antd-money
pnpm add antd-money
yarn add antd-money
bun add antd-money
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-07-07 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 52.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yunus Emre Ulucay |
| Maintainers | yeulucay |
| Keywords | input, currency, money |

## Links

- npm: https://www.npmjs.com/package/antd-money
- npm.io page: https://npm.io/package/antd-money

## Recent versions

- 1.0.4 (latest) — 2021-07-07
- 1.0.3 — 2021-06-29
- 1.0.2 — 2021-06-29
- 1.0.1 — 2021-04-06
- 1.0.0 — 2021-04-06

## README

# antd-money

React money/currency input using ant design.

## Usage

```js
<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

---
_Source: https://npm.io/package/antd-money · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
