🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-image-layout

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-layout

A simple Pinterest style grid layout component for images

1.0.0
latest
Source
npm
Version published
Weekly downloads
17
30.77%
Maintainers
1
Weekly downloads
 
Created
Source

react-image-layout

Install

npm install react-image-layout --save

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

Keywords

react

FAQs

Package last updated on 12 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts