1.0.0 • Published 8 years ago

react-image-layout v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

react-image-layout

Install

npm install react-image-layout --save

npm.io

ImageLayout Props

proptypedefaultnotes
gutternumber0the margin between grid elements
columnsnumber4the number of columns to use in the grid
columnWidthnumber100the fixed width of the columns
itemsArrayrequiredthe list of image objects

Use:

import ImageLayout from 'react-image-layout';

<ImageLayout items={items} columnWidth={200} columns={5} gutter={8} />

Scripts

scriptdescription
npm startrun the example on localhost:3000
npm testrun the component tests
npm buildbuild the compiled/minified version
npm run lintrun the linter on the /src directory

License

MIT