JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q47812F
  • License MIT

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.

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

standard-readme compliant license

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.

banner

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

@nickadamson

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2022 Nick Adamson