react-justified-layout

0.1.0 • Public • Published

react-justified-layout

Flickr's justified layout as a React component

Usage

See here for documentation & demo.

const JustifiedLayout = require('react-justified-layout');
 
<JustifiedLayout ...opts>
    <img style={{ height:1920, width: 1080 }} src="http://awwwwww.com/1" />
    <div aspectRatio={1.8}>Some Div</div>
    <CustomComponent style={{ backgroundColor: '#ffffff'}} />
</JustifiedLayout>

Development

npm install
npm start
open http://localhost:3000
npm run lint
npm test

Package Sidebar

Install

npm i react-justified-layout

Weekly Downloads

6

Version

0.1.0

License

ISC

Unpacked Size

8.89 MB

Total Files

39

Last publish

Collaborators

  • dean177