# react-cartesian

> Cartesian product react component

Latest version **1.0.13** (published 2020-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-cartesian
pnpm add react-cartesian
yarn add react-cartesian
bun add react-cartesian
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2020-02-28 |
| First published | 2020-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 56 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jorge Yau |
| Maintainers | codenameyau |
| Keywords | cartesian, product, cartesian-product, react, storybook |

## Links

- npm: https://www.npmjs.com/package/react-cartesian
- Repository: https://github.com/codenameyau/react-cartesian
- Homepage: https://github.com/codenameyau/react-cartesian#readme
- Issues: https://github.com/codenameyau/react-cartesian/issues
- npm.io page: https://npm.io/package/react-cartesian

## Dependencies (2)

- [styled-components](https://npm.io/package/styled-components.md) ^5.0.1
- [react-element-to-jsx-string](https://npm.io/package/react-element-to-jsx-string.md) ^14.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.13 (latest) — 2020-02-28
- 1.0.12 — 2020-02-26
- 1.0.8 — 2020-02-26
- 1.0.7 — 2020-02-26
- 1.0.6 — 2020-02-26
- 1.0.5 — 2020-02-26
- 1.0.4 — 2020-02-18
- 1.0.3 — 2020-02-18
- 1.0.2 — 2020-02-18
- 1.0.1 — 2020-02-18
- 1.0.0 — 2020-02-18

## README

# react-cartesian

React Cartesian Product component. This will render all possible prop
combinations for a component and is useful in conjunction with storybook.
https://www.npmjs.com/package/react-cartesian

## Features

Can copy JSX of component with a single click.

## Getting started
```bash
npm install --save react-cartesian
```

```bash
yarn add react-cartesian
```

### Usage
```js
import React from 'react';
import Cartesian from 'react-cartesian';

const ExampleCartesian = () => {
  return (
    <Cartesian
      cols={3}
      component={Component}
      showProps={false}
      props={{
        color: ['red', 'green', 'blue'],
        children: ['Text 1', 'Text 2', 'Text 3']
      }}
    />
  )
};
```

## Publishing to NPM
Here's how to publish this package to NPM.

### Automated
Run this script on a **clean branch** and enter two factor code.

```bash
npm run deploy
```

### Manually
You can also publish manually by running these steps.

```bash
# Run unit tests.
npm run test

# Build module.
npm run build

# Bump patch version.
npm version patch

# Publish package to npm with two factor code.
npm publish
```

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