# ksg-product-card

> This is a NPM deployment test package.

Latest version **0.0.4-beta** (published 2022-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ksg-product-card
pnpm add ksg-product-card
yarn add ksg-product-card
bun add ksg-product-card
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4-beta |
| Published | 2022-02-03 |
| First published | 2022-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 153.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ApoloSG |
| Maintainers | kevinsg99 |
| Keywords | product, card, kevin, salazar |

## Links

- npm: https://www.npmjs.com/package/ksg-product-card
- Repository: https://github.com/kevin-sg/ksg-product-card
- Homepage: https://github.com/kevin-sg/ksg-product-card#readme
- Issues: https://github.com/kevin-sg/ksg-product-card/issues
- npm.io page: https://npm.io/package/ksg-product-card

## Dependencies (1)

- [enzyme](https://npm.io/package/enzyme.md) ^3.11.0

## Recent versions

- 0.0.4-beta (latest) — 2022-02-03
- 0.0.2-beta — 2022-02-02
- 0.0.1 — 2022-02-02

## README

# KSG-PRODUCT-CARD

This is a NPM deployment test package.

## Installing

Using npm:

```
npm install ksg-product-card
```

Examples:

```
import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'ksg-product-card'
```

```
// Required
const product = {
  id: "1",
  title: "My Title - Card",
  img: "https://my-image.jpg",
}
```

```
<ProductCard product={product} initialValues={{ count: 0, maxCount: 10 }}>
    {() => (
      <>
        <ProductImage />
        <ProductTitle />
        <ProductButtons />
      </>
    )}
</ProductCard>
```

or

```
<ProductCard product={product} initialValues={{ count: 4, maxCount: 20 }}>

	// args optional
    {({ count, isMaxCountReached, maxCount, product, increaseBy, reset }) => (
	 <>
	   <ProductCard.Title title="Hello world" className="text-bold" />
	   <ProductCard.Image img="https://my-image.jpg" className="bg-cover" />
	   <ProductCard.Buttons style={{ borderRadius: '20px' }} />
	 </>
    )}
</ProductCard>
```

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