1.0.13 • Published 4 years ago

react-cartesian v1.0.13

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

npm install --save react-cartesian
yarn add react-cartesian

Usage

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.

npm run deploy

Manually

You can also publish manually by running these steps.

# 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
1.0.13

4 years ago

1.0.12

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago