You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(**Required**) An array of objects containing the following properties:
100
103
101
-
-`id`: (**Required**) An [identification string or number](https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key) that uniquely identifies each image among other images in the array.
102
-
-`alt`: (**Required**) The image's [alternative text](https://webaim.org/techniques/alttext).
103
-
-`caption`: (**Optional**) The [image's description](https://www.studysmarter.co.uk/explanations/english/blog/image-caption).
104
-
-`src`: (**Required**) The image's [URL](https://codesweetly.com/web-address-url).
104
+
-`id`: (**Required** - string or number) Each image's [unique identifying key](https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key).
105
+
-`alt`: (**Required** - string) The image's [alternative text](https://webaim.org/techniques/alttext).
106
+
-`caption`: (**Optional** - string) The [image's description](https://www.studysmarter.co.uk/explanations/english/blog/image-caption).
107
+
-`src`: (**Required** - string) The image's default [URL](https://codesweetly.com/web-address-url).
108
+
-`gridSrc`: (**Optional** - string) The preferred grid image's URL.
109
+
-`thumbSrc`: (**Optional** - string) The preferred thumbnail image's URL.
110
+
-`srcSet`: (**Optional** - string) The set of images' URLs and sizes for [resolution switching](https://developer.mozilla.org/en-US/docs/Web/HTML/Responsive_images#resolution_switching_different_sizes).
111
+
-[`mediaSizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Responsive_images#resolution_switching_different_sizes): (**Optional** - string) The media conditions and image sizes that hint the browser on the specific `srcSet` to display when a media condition is true.
105
112
106
113
</td>
107
114
</tr>
@@ -113,11 +120,7 @@ function App() {
113
120
</td>
114
121
<td>number or keyword (string)</td>
115
122
<td><code>"auto"</code></td>
116
-
<td>
117
-
118
-
(**Optional**) The number of columns.
119
-
120
-
</td>
123
+
<td>(<strong>Optional</strong>) The number of columns.</td>
121
124
</tr>
122
125
<tr>
123
126
<td>
@@ -127,11 +130,7 @@ function App() {
127
130
</td>
128
131
<td>number or keyword (string)</td>
129
132
<td><code>230</code></td>
130
-
<td>
131
-
132
-
(**Optional**) The minimum width of the gallery's columns.
133
-
134
-
</td>
133
+
<td>(<strong>Optional</strong>) The minimum width of the gallery's columns.</td>
135
134
</tr>
136
135
<tr>
137
136
<td>
@@ -141,18 +140,10 @@ function App() {
141
140
</td>
142
141
<td>number</td>
143
142
<td><code>24</code></td>
144
-
<td>
145
-
146
-
(**Optional**) The gallery's gap size.
147
-
148
-
</td>
143
+
<td>(<strong>Optional</strong>) The gallery's gap size.</td>
149
144
</tr>
150
145
<tr>
151
-
<td>
152
-
153
-
`fixedCaption`
154
-
155
-
</td>
146
+
<td><code>fixedCaption</code></td>
156
147
<td>boolean</td>
157
148
<td><code>false</code></td>
158
149
<td>
@@ -162,11 +153,29 @@ function App() {
162
153
</td>
163
154
</tr>
164
155
<tr>
156
+
<td><code>thumbnailBorder</code></td>
157
+
<td>string</td>
158
+
<td><code>"3px solid #fff"</code></td>
159
+
<td>(<strong>Optional</strong>) The thumbnail's border style.</td>
160
+
</tr>
161
+
<tr>
162
+
<td><code>lazy</code></td>
163
+
<td>boolean</td>
164
+
<td><code>true</code></td>
165
+
<td>(<strong>Optional</strong>) Specify whether to lazy load images.</td>
166
+
</tr>
167
+
<tr>
168
+
<td><code>lazyFromIndex</code></td>
169
+
<td>number</td>
170
+
<td><code>6</code></td>
165
171
<td>
166
172
167
-
`customStyles`
173
+
(**Optional**) The image's [index](https://codesweetly.com/web-tech-terms-i/#index) to begin the grid's lazy loading.
0 commit comments