# dynamic-picture-cubes

> React component that creates cubes from a picture.

Latest version **0.0.3** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install dynamic-picture-cubes
pnpm add dynamic-picture-cubes
yarn add dynamic-picture-cubes
bun add dynamic-picture-cubes
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-05-07 |
| First published | 2018-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 169 |
| Author | Jason BOURLARD |
| Maintainers | rapsspider |
| Keywords | cube, react, picture, dynamic |

## Links

- npm: https://www.npmjs.com/package/dynamic-picture-cubes
- Repository: https://github.com/yogaboll/react-npm-component-starter
- Homepage: https://github.com/rapsspider/dynamic-picture-cubes#readme
- Issues: https://github.com/rapsspider/dynamic-picture-cubes/issues
- npm.io page: https://npm.io/package/dynamic-picture-cubes

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

- 0.0.3 (latest) — 2018-05-07

## README

[Demo](https://rapsspider.github.io/dynamic-picture-cubes/)

## Installation

dynamic-picture-cubes is available as an [npm package](https://www.npmjs.com/package/dynamic-picture-cubes).

```sh
npm install --save dynamic-picture-cubes
```

## Usage

Here is a quick example :

```jsx
import React from "react";
import { render } from "react-dom";
import Cube from "../../lib";
import "./styles.css";

function Demo() {
  return (
    <div>
      <h1>Demo with examples of the component</h1>
	  <h2>With one image</h2>
        <Cube
          height={'560'}
          width={'560'}
          colLength={5}
          rowLength={5}
          color={'#aaa'}
          img={'https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png'}
        />
	  <h2>With two images</h2>
        <Cube
          height={'560'}
          width={'560'}
          colLength={5}
          rowLength={5}
          color={'#aaa'}
          img={'https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png'}
          rightImg={'https://www.drupal.org/files/project-images/octocat_fluid.png'}
        />
    </div>
  );
}

render(<Demo />, document.getElementById("app"));
```

## Parameters

```jsx
Cube.defaultProps = {
  timeBeforeHide: 5000,
  timeBeforeShow: 2500,
  timeBetweenHideCube: 50,
  timeBetweenShowCube: 50,
};

Cube.propTypes = {
  timeBeforeHide: PropTypes.number,
  timeBeforeShow: PropTypes.number,
  timeBetweenHideCube: PropTypes.number,
  timeBetweenShowCube: PropTypes.number,
  height: PropTypes.string.isRequired,
  width: PropTypes.string.isRequired,
  colLength: PropTypes.number.isRequired,
  color: PropTypes.string.isRequired,
  rowLength: PropTypes.number.isRequired,
  img: PropTypes.string.isRequired,
  rightImg: PropTypes.string.isRequired,
};
```

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