# marketing-components-pro

> marketing components

Latest version **1.1.1** (published 2023-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install marketing-components-pro
pnpm add marketing-components-pro
yarn add marketing-components-pro
bun add marketing-components-pro
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-05-07 |
| First published | 2022-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 34.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gongking |

## Links

- npm: https://www.npmjs.com/package/marketing-components-pro
- npm.io page: https://npm.io/package/marketing-components-pro

## Dependencies (3)

- [sass](https://npm.io/package/sass.md) ^1.56.1
- [classnames](https://npm.io/package/classnames.md) ^2.3.2
- [poor-utils-pro](https://npm.io/package/poor-utils-pro.md) ^1.6.1

## Recent versions

- 1.1.1 (latest) — 2023-05-07
- 1.1.0 — 2022-12-05
- 1.0.11 — 2022-12-02
- 1.0.10 — 2022-11-29
- 1.0.9-beta.0 — 2022-11-28
- 1.0.8 — 2022-11-28
- 1.0.7 — 2022-11-28
- 1.0.6 — 2022-11-28
- 1.0.5 — 2022-11-28
- 1.0.4 — 2022-11-28
- 1.0.3 — 2022-11-28
- 1.0.2 — 2022-11-27
- 1.0.1 — 2022-11-24
- 1.0.0 — 2022-11-23
- 0.0.1 — 2022-11-22

## README

# marketing-components 「自带概率逻辑的营销组件库」

[![NPM version](https://img.shields.io/npm/v/marketing-components-pro.svg?style=flat)](https://npmjs.org/package/marketing-components-pro)
[![NPM downloads](http://img.shields.io/npm/dm/marketing-components-pro.svg?style=flat)](https://npmjs.org/package/marketing-components-pro)

[docs](https://gong9.github.io/marketing-components/)

## Usage

安装:

`pnpm add marketing-components-pro`

使用:

```tsx
import { Lottery } from 'marketing-components-pro';

const data = [
  {
    id: 1,
    name: '代金券1',
  },
  {
    id: 2,
    name: '代金券2',
  },
  {
    id: 3,
    name: '代金券3',
  },
  {
    id: 4,
    name: '代金券4',
  },
  {
    id: 5,
    name: '代金券5',
  },
  {
    id: 6,
    name: '代金券6',
  },
  {
    id: 7,
    name: '代金券7',
  },
  {
    id: 8,
    name: '代金券8',
  },
];

const callback = (luckyRewards) => {
  console.log(luckyRewards.name);
};

export default () => <Lottery data={data} callback={callback} />;
```

## Options

TODO

## Development

```bash
# install dependencies
$ pnpm install

# develop library by docs demo
$ pnpm start

# build library source code
$ pnpm run build

# build library source code in watch mode
$ pnpm run build:watch

# build docs
$ pnpm run docs:build

# check your project for potential problems
$ pnpm run doctor
```

## LICENSE

MIT

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