# react-packery-component--virajsoni

> A Packery component for React.js

Latest version **1.0.2** (published 2017-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-packery-component--virajsoni
pnpm add react-packery-component--virajsoni
yarn add react-packery-component--virajsoni
bun add react-packery-component--virajsoni
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-10-25 |
| First published | 2017-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Eirik Vullum |
| Maintainers | virajsoni06 |
| Keywords | react, mixin, masonry, packery, isotope, react-component |

## Links

- npm: https://www.npmjs.com/package/react-packery-component--virajsoni
- Repository: https://github.com/eiriklv/react-packery-component
- Issues: https://github.com/eiriklv/react-packery-component/issues
- npm.io page: https://npm.io/package/react-packery-component--virajsoni

## Dependencies (4)

- [packery](https://npm.io/package/packery.md) github:eiriklv/packery
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [imagesloaded](https://npm.io/package/imagesloaded.md) github:eiriklv/imagesloaded
- [create-react-class](https://npm.io/package/create-react-class.md) ^15.6.2

## 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.2 (latest) — 2017-10-25

## README

React Packery Component
=======================

[![npm version](https://badge.fury.io/js/react-packery-component.svg)](http://badge.fury.io/js/react-packery-component)

#### Introduction:
A [React.js](https://facebook.github.io/react/) [Packery](http://packery.metafizzy.co/) component. (Also available as a [mixin](https://github.com/eiriklv/react-packery-mixin) if needed)

#### Support
React >= 0.14.x

#### Live demo:
[hearsay.me](http://www.hearsay.me)

#### Installation:
` $ npm install react-packery-component --save`

#### Usage:

* The component bundles Packery, so no additional dependencies needed!
* You can optionally include Packery as a script tag if there should be any reason for doing so:
`<script src='//cdnjs.cloudflare.com/ajax/libs/packery/1.3.0/packery.pkgd.min.js' />`

* To use the component just require the module and inject `React`
* Example code:

```js
var React = require('react');
var Packery = require('react-packery-component')(React);

var packeryOptions = {
    transitionDuration: 0
};

var Gallery = React.createClass({
    render: function () {
        var childElements = this.props.elements.map(function(element){
           return (
                <li className="image-element-class">
                    <img src={element.src} />
                </li>
            );
        });

        return (
            <Packery
                className={'my-gallery-class'} // default ''
                elementType={'ul'} // default 'div'
                options={packeryOptions} // default {}
                disableImagesLoaded={false} // default false
            >
                {childElements}
            </Packery>
        );
    }
});

module.exports = Gallery;
```

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