1.0.1 • Published 6 years ago

@nju33/react-masonry v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-masonry

TypeScript @nju33/react-masonry style: styled-components code style: prettier

Install

yarn add @nju33/react-masonry react react-dom styled-components

This library includes the d.ts.

Demo

https://nju33.github.io/react-masonry/

Sample Code

import React from 'react';
import {render} from 'react-dom';
import {Masonry} from '@nju33/react-masonry';

render(
  (
    <Masonry
      col={3} 
      gap={16} 
    >
      <div style={{width: '100%', height: '100px'}}>
        <Something />
      </div>
      <div style={{width: '100%', height: '100px'}}>
        <Something />
      </div>
      {/* ... */}
    </Masonry>
  ),
  document.body
)
1.0.1

6 years ago

1.0.0

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago