2.2.6 • Published 2 months ago
@webibee/easy-masonry-react v2.2.6
This is a masonry component that can be use to render any set of elements in Masonry fashion.
🫶 Usage
Example array of images
const IMG = [
{
src: "https://picsum.photos/id/1/500/500"
},
{
src: "https://picsum.photos/id/2/500/500"
},
{
src: "https://picsum.photos/id/3/500/500"
},
{
src: "https://picsum.photos/id/4/500/500"
},
{
src: "https://picsum.photos/id/5/500/500"
},
{
src: "https://picsum.photos/id/6/500/500"
},
];
Add the elements for Masonry as children mentioned below
<Masonry>
{IMG.map((item, idx) => (
<img
alt="..."
src={item.src}
className={` max-w-full rounded-md overflow-hidden object-cover object-center`}
key={idx}
/>
))}
</Masonry>
Props
Prop | Options | Desc ß |
---|---|---|
height | screen fill | REQUIRED: default is screen . |
columnCount | {350:1,900:2} | REQUIRED breakpoints and the number of columns. |
speed | 20s | default is 20s. |
stopOnHover | false true | default is false. |
animation | false true | default is false. |
## License
MIT. © 2024 Webibee
2.2.5
2 months ago
2.2.6
2 months ago
2.2.1
2 months ago
2.2.0
2 months ago
2.2.3
2 months ago
2.2.2
2 months ago
2.2.4
2 months ago
2.1.2
2 months ago
2.0.3
2 months ago
2.1.1
2 months ago
2.0.2
2 months ago
2.1.4
2 months ago
2.0.5
2 months ago
2.1.3
2 months ago
2.0.4
2 months ago
2.1.6
2 months ago
2.0.7
2 months ago
2.1.5
2 months ago
2.0.6
2 months ago
2.0.9
2 months ago
2.1.7
2 months ago
2.0.8
2 months ago
2.1.0
2 months ago
2.0.1
2 months ago
2.0.0
2 months ago
2.1.9
2 months ago
1.0.9
2 months ago
1.0.8
2 months ago
1.0.6
2 months ago
1.0.5
2 months ago
1.0.4
2 months ago