react-packer
v0.1.0
Published
React Bin Packing Layout Component
Downloads
2
Readme
React Packer
Packer is a React component, making bin packing layout.
Currently it is not perfect.
Usage
See examples/
or:
var Packer = require('react-packer');
var App = React.createClass({
render: function () {
return (
<Packer>
<Packer />
<Packer className='item' />
<Packer>
<p>Hello World</p>
</Packer>
</Packer>
);
}
});
React.render(
<App />,
document.body
)
Notice: Multiple Packer
components must be enclosed in an element such as div
or another Packer
react element.
Install
npm install react-packer --save
License
The MIT License, See LICENSE.txt file.
Copyright (c) 2015, Towry Wang