# @stone-payments/emd-basic-money

> emd-basic-money

Latest version **2.1.3** (published 2020-09-09) · 0 weekly downloads

## Install

```sh
npm install @stone-payments/emd-basic-money
pnpm add @stone-payments/emd-basic-money
yarn add @stone-payments/emd-basic-money
bun add @stone-payments/emd-basic-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 | 2.1.3 |
| Published | 2020-09-09 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 44.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stone Co. |
| Maintainers | sling-web |

## Links

- npm: https://www.npmjs.com/package/@stone-payments/emd-basic-money
- npm.io page: https://npm.io/package/@stone-payments/emd-basic-money

## Dependencies (4)

- [@stone-payments/emd-hocs](https://npm.io/package/@stone-payments/emd-hocs.md) ^1.1.0
- [@stone-payments/emd-helpers](https://npm.io/package/@stone-payments/emd-helpers.md) ^1.1.2
- [@stone-payments/lit-element](https://npm.io/package/@stone-payments/lit-element.md) ^2.2.1
- [@stone-payments/emd-formatters](https://npm.io/package/@stone-payments/emd-formatters.md) ^1.0.0

## Recent versions

- 2.1.3 (latest) — 2020-09-09
- 2.1.2 — 2020-05-21
- 2.1.1 — 2020-03-23
- 2.1.0 — 2020-01-10
- 2.0.0 — 2019-09-12
- 1.0.1 — 2019-09-05
- 1.0.0 — 2019-07-04
- 0.1.3 — 2019-04-29
- 0.1.2 — 2019-04-02
- 0.1.1 — 2019-03-25
- 0.1.0 — 2019-03-21

## README

# Money

Emerald Money UI component.

## Usage

```
npm install @stone-payments/emd-basic-money
```

```js
import '@stone-payments/emd-basic-money';
```

```html
<emd-money value="12680.9"></emd-money>

<emd-money value="12680.9" hidevalue></emd-money>

<emd-money value="12680.9" currency="EUR" hidepositivesign></emd-money>
```

## Attributes and Properties

#### `value`

Defines the numeric value to be displayed. The component uses `Intl.NumberFormat` API to round values.

- Type: Number
- Attribute and property

#### `currency`

Defines the currency to be displayed. It can be `BRL`, `USD` or `EUR`.

- Type: String
- Attribute and property

#### `hidevalue`

Hides the value with a rectangle.

- Type: Boolean
- Attribute and property

#### `hidepositivesign`

Hides the positive sign before the value. The negative sign cannot be hidden.

- Type: Boolean
- Attribute and property

## CSS Properties

#### `--emd-money-positive-color`

Defines the color of positive values.

- Default: `inherit`

#### `--emd-money-neutral-color`

Defines the color of values equal to zero.

- Default: `inherit`

#### `--emd-money-negative-color`

Defines the color of negative values.

- Default: `inherit`

#### `--emd-money-effect-color`

Defines the color of the rectangle that hides the value.

- Default: `currentColor`

#### `--emd-money-effect-opacity`

Defines the opacity of the rectangle that hides the value.

- Default: `0.5`

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