Skip to content

leoalves/react-image-layout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-image-layout

Install

npm install react-image-layout --save

ImageLayout Props

prop type default notes
gutter number 0 the margin between grid elements
columnMinWidth number 100 the minimum fixed width (px) of the columns
columnMaxWidth number 400 the maximum fixed width (px) of the columns
items Array required the list of image objects

Use:

import ImageLayout from 'react-image-layout';

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

Scripts

script description
npm start run the example on localhost:3000
npm test run the component tests
npm build build the compiled/minified version
npm run lint run the linter on the /src directory

License

MIT

About

A simple Pinterest style grid layout component for images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.1%
  • HTML 1.9%