{"id":13400988,"url":"https://github.com/eiriklv/react-packery-mixin","last_synced_at":"2025-08-20T16:33:43.875Z","repository":{"id":24259561,"uuid":"27653361","full_name":"eiriklv/react-packery-mixin","owner":"eiriklv","description":"A React mixin for using Metafizzy Packery","archived":false,"fork":false,"pushed_at":"2015-11-18T17:41:51.000Z","size":12,"stargazers_count":22,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-11T09:52:44.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eiriklv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-06T23:51:29.000Z","updated_at":"2024-04-02T20:27:35.000Z","dependencies_parsed_at":"2022-08-22T14:31:19.314Z","dependency_job_id":null,"html_url":"https://github.com/eiriklv/react-packery-mixin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriklv%2Freact-packery-mixin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriklv%2Freact-packery-mixin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriklv%2Freact-packery-mixin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiriklv%2Freact-packery-mixin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiriklv","download_url":"https://codeload.github.com/eiriklv/react-packery-mixin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230438244,"owners_count":18225873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:57.657Z","updated_at":"2024-12-19T13:14:47.652Z","avatar_url":"https://github.com/eiriklv.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","Awesome React","React [🔝](#readme)"],"sub_categories":["Uncategorized","Tools"],"readme":"React Packery Mixin\n===================\n\n#### Introduction:\nA mixin for React.js to use Metafizzy Packery (Also available as a [component](https://github.com/eiriklv/react-packery-component) - you should use that instead!)\n\n#### Which version should I use?\nReact Packery Mixin 0.2.x is compatible with React 0.14 and above only. For older versions of React, use a 0.1.x version of React Packery Mixin.\n\n#### Usage:\n\n* The mixin is bundled with packery, so no additional dependencies needed!\n* You can optionally include Packery as a script tag as an override\n`\u003cscript src='//cdnjs.cloudflare.com/ajax/libs/packery/1.3.0/packery.pkgd.min.js' /\u003e`\n\n* To use the mixin\n * require the mixin\n * pass a reference and a packery options object\n * make sure you use the same reference as `ref` in your component\n * if you need to - access the packery object through `this.packery` in your component\n\n* example use in code\n\n```js\n/** @jsx React.DOM */\n\n'use strict';\n\nvar React = require('react');\n\nvar PackeryMixin = require('react-packery-mixin');\n\nvar packeryOptions = {\n    transitionDuration: 0\n};\n\nmodule.exports = React.createClass({\n    displayName: 'SomeComponent',\n\n    mixins: [PackeryMixin('packeryContainer', packeryOptions)],\n\n    render: function () {\n        var childElements = this.props.elements.map(function(element){\n           return (\n                \u003cdiv className=\"someclass\"\u003e\n                    {element.name}\n                \u003c/div\u003e\n            );\n        });\n\n        return (\n            \u003cdiv ref=\"packeryContainer\"\u003e\n                {childElements}\n            \u003c/div\u003e\n        );\n    }\n});\n```\n\n# License information (Metafizzy)\n\n## Commercial license\n\nPackery may be used in commercial projects and applications with the one-time purchase of a commercial license. If you are paid to do your job, and part of your job is implementing Packery, a commercial license is required.\n\nhttp://packery.metafizzy.co/license.html\n\nFor non-commercial, personal, or open source projects and applications, you may use Packery under the terms of the [GPL v3 License](http://choosealicense.com/licenses/gpl-v3/). You may use Packery for free.\n\n---\n\nCopyright (c) 2014 Metafizzy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiriklv%2Freact-packery-mixin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiriklv%2Freact-packery-mixin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiriklv%2Freact-packery-mixin/lists"}