Package Exports
- messonry
- messonry/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (messonry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
messonry
A messy grid layout library for React. Like a masonry layout; except that it crops images as little as possible, and displays them as close to their original aspect ratio as possible.
Table of Contents
Install
npm i messonry
or
yarn add messonry
Usage
import MessonryGrid from "messonry";
const Component = () => {
const media: GridItem[] = [
{ src: '<URL>', mimeType: "image" || "video" },
...
]
return (
<>
<MessonryGrid items={media} />
</>
)
}
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.