0.1.0 • Published 10 years ago

react-packer v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

React Packer

NPM

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