Skip to content

Commit 55390b4

Browse files
committed
update docs
1 parent eafbd33 commit 55390b4

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
⚡ Powerful Image Grid for React </br>
2929
</p>
3030
<p align="center" style="background: #f5f5f5;padding: 1rem;font-weight:bold;font-size:1.25rem">
31-
In built Virtualization 🔷 🧱 Masonry Layout 🔷 🚀 Customizable 🔷 🪶 Lightweight
31+
Virtualized by Default 🔷 💡Multiple Layouts 🔷 🧱 Masonry Layout 🔷 🪶 Lightweight
3232
</p>
3333

3434
- [⚡ Features ](#-features-)
@@ -54,7 +54,7 @@
5454
- 🧱 Build beautiful [Masonry](#-masonry) grids using the Masonry component
5555
- ➡️ Render images horizontally or vertically in a grid.
5656
- ⚡ Built-in virtualization for improved performance.
57-
- 🖼️ Load thousands of images without worrying about performance.
57+
- 🖼️ Load **1000's** of images without worrying about performance.
5858
- 🎛️ UI controls for adjusting image sizes.
5959
- 💡 Resizable Grid
6060
- 📦 Lightweight (7kb gzipped)

masonry_demo.png

-163 KB
Loading

src/App.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable jsx-a11y/img-redundant-alt */
22
import React from "react";
33
import "./app.css";
4-
import { Masonry, Grid } from "./react-visual-grid";
4+
import { Masonry } from "./react-visual-grid";
55

66
// generate random images array using lorem picsum api
77
const images = Array.from({ length: 50 }, (_, i) => ({
@@ -65,7 +65,7 @@ function App() {
6565
</span>
6666
))}
6767
</Masonry> */}
68-
<Masonry fillMode="HORIZONTAL" height={500} width={300}>
68+
<Masonry fillMode="HORIZONTAL" height={700} width={600}>
6969
<span className={`rc-w-100 rc-h-100`}>
7070
<img alt="Image 1" src={`https://picsum.photos/id/10/100/100`} />
7171
</span>
@@ -79,7 +79,22 @@ function App() {
7979
<img alt="Image 1" src={`https://picsum.photos/id/14/100/100`} />
8080
</span>
8181
<span className={`rc-w-300 rc-h-150`}>
82-
<img alt="Image 1" src={`https://picsum.photos/id/15/200/100`} />
82+
<img alt="Image 1" src={`https://picsum.photos/id/15/300/150`} />
83+
</span>
84+
<span className={`rc-w-180 rc-h-150`}>
85+
<img alt="Image 1" src={`https://picsum.photos/id/23/180/150`} />
86+
</span>
87+
<span className={`rc-w-120 rc-h-150`}>
88+
<img alt="Image 1" src={`https://picsum.photos/id/154/120/150`} />
89+
</span>
90+
<span className={`rc-w-160 rc-h-200`}>
91+
<img alt="Image 1" src={`https://picsum.photos/id/215/160/200`} />
92+
</span>
93+
<span className={`rc-w-440 rc-h-200`}>
94+
<img alt="Image 1" src={`https://picsum.photos/id/77/440/200`} />
95+
</span>
96+
<span className={`rc-w-600 rc-h-200`}>
97+
<img alt="Image 1" src={`https://picsum.photos/id/162/600/200`} />
8398
</span>
8499
</Masonry>
85100

0 commit comments

Comments
 (0)