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
Row height; the following formats are supported: - number of pixels (number)
168
+
169
+
- percentage of the grid's current height (string)
170
+
- function that returns the row height (in pixels) given an index and `cellProps`
171
+
- dynamic row height cache returned by the `useDynamicRowHeight` hook
172
+
173
+
⚠️ Dynamic row heights are not as efficient as predetermined sizes.
174
+
It's recommended to provide your own height values if they can be determined ahead of time.
175
+
</td>
176
+
</tr>
177
+
<tr>
178
+
<td>rowProps</td>
179
+
<td>✓</td>
180
+
<td>
181
+
<code>RowProps</code>
182
+
</td>
183
+
<td>
184
+
Additional props to be passed to the row-rendering component. List will automatically re-render rows when values in this object change.
185
+
186
+
⚠️ This object must not contain `ariaAttributes`, `index`, or `style` props.
187
+
</td>
188
+
</tr>
189
+
<tr>
190
+
<td>tagName</td>
191
+
<td></td>
192
+
<td>
193
+
<code>keyof IntrinsicElements | undefined</code>
194
+
</td>
195
+
<td>
196
+
Can be used to override the root HTML element rendered by the List component. The default value is "div", meaning that List renders an HTMLDivElement as its root.
197
+
198
+
⚠️ In most use cases the default ARIA roles are sufficient and this prop is not needed.
199
+
</td>
200
+
</tr>
201
+
202
+
</tbody>
203
+
</table>
204
+
205
+
<!-- List:end -->
206
+
207
+
### Grid
208
+
209
+
<!-- Grid:begin -->
210
+
211
+
<table>
212
+
<thead>
213
+
<tr>
214
+
<th>Name</th>
215
+
<th>Required?</th>
216
+
<th>Type</th>
217
+
<th>Description</th>
218
+
</tr>
219
+
</thead>
220
+
<tbody>
221
+
<tr>
222
+
<td>className</td>
223
+
<td></td>
224
+
<td>
225
+
<code>string | undefined</code>
226
+
</td>
227
+
<td>
228
+
CSS class name.
229
+
</td>
230
+
</tr>
231
+
<tr>
232
+
<td>dir</td>
233
+
<td></td>
234
+
<td>
235
+
<code>string | undefined</code>
236
+
</td>
237
+
<td>
238
+
Corresponds to the HTML dir attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/dir
239
+
</td>
240
+
</tr>
241
+
<tr>
242
+
<td>style</td>
243
+
<td></td>
244
+
<td>
245
+
<code>CSSProperties | undefined</code>
246
+
</td>
247
+
<td>
248
+
Optional CSS properties. The grid of cells will fill the height and width defined by this style.
249
+
</td>
250
+
</tr>
251
+
<tr>
252
+
<td>children</td>
253
+
<td></td>
254
+
<td>
255
+
<code>ReactNode</code>
256
+
</td>
257
+
<td>
258
+
Additional content to be rendered within the grid (above cells). This property can be used to render things like overlays or tooltips.
Callback notified when the Grid's outermost HTMLElement resizes. This may be used to (re)scroll a cell into view.
361
+
</td>
362
+
</tr>
363
+
<tr>
364
+
<td>overscanCount</td>
365
+
<td></td>
366
+
<td>
367
+
<code>number | undefined</code>
368
+
</td>
369
+
<td>
370
+
How many additional rows/columns to render outside of the visible area. This can reduce visual flickering near the edges of a grid when scrolling.
371
+
</td>
372
+
</tr>
373
+
<tr>
374
+
<td>rowCount</td>
375
+
<td>✓</td>
376
+
<td>
377
+
<code>number</code>
378
+
</td>
379
+
<td>
380
+
Number of rows to be rendered in the grid.
381
+
</td>
382
+
</tr>
383
+
<tr>
384
+
<td>rowHeight</td>
385
+
<td>✓</td>
386
+
<td>
387
+
<code>string | number | ((index: number, cellProps: CellProps) => number)</code>
388
+
</td>
389
+
<td>
390
+
Row height; the following formats are supported: - number of pixels (number)
391
+
392
+
- percentage of the grid's current height (string)
393
+
- function that returns the row height (in pixels) given an index and `cellProps`
394
+
</td>
395
+
</tr>
396
+
<tr>
397
+
<td>tagName</td>
398
+
<td></td>
399
+
<td>
400
+
<code>keyof IntrinsicElements | undefined</code>
401
+
</td>
402
+
<td>
403
+
Can be used to override the root HTML element rendered by the List component. The default value is "div", meaning that List renders an HTMLDivElement as its root.
404
+
405
+
⚠️ In most use cases the default ARIA roles are sufficient and this prop is not needed.
0 commit comments