{"name":"react-window","version":"2.2.1-alpha.0","author":{"url":"https://github.com/bvaughn/","name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"react-window@2.2.1-alpha.0","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"}],"contributors":[{"url":"https://github.com/bvaughn/","name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"}],"homepage":"http://react-window.now.sh/","bugs":{"url":"https://github.com/bvaughn/react-window/issues"},"dist":{"shasum":"2f0e2ec50efb8bc104cafc9c778815c143c7004f","tarball":"http://registry-npm.ywwl.com/react-window/download/react-window-2.2.1-alpha.0.tgz","fileCount":8,"integrity":"sha512-hXhLxHr9yDYoC2o3bbLTgOlQL0+rKSb4khnLLEoa/HkJkxirfYQjbc+NeFb8PB54RZwOtK+0wCUByqjARVrDkA==","signatures":[{"sig":"MEUCIQDvXWHmlr5I45QMEwNnh+VtpJQRpuNN1koTfHZnAc0qFgIgFJWxHuQ5gP8gG+ZVVHJYep7fjWJYtLQBbE057R+ryl0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":328880,"size":65584,"noattachment":false,"key":"/react-window/-/react-window-2.2.1-alpha.0.tgz"},"main":"dist/react-window.cjs","type":"module","types":"dist/react-window.d.ts","module":"dist/react-window.js","gitHead":"77418dd5082ee0296d77d6ae027f856d1a88b832","scripts":{"dev":"vite","tsc":"tsc -b","lint":"eslint .","test":"vitest","build":"pnpm run build:lib && pnpm run build:docs","compile":"pnpm run compile:code-snippets && pnpm run compile:docs","preview":"vite preview","test:ci":"vitest run","prettier":"prettier --write \"**/*.{css,html,js,json,jsx,ts,tsx}\"","build:lib":"TARGET=lib vite build","build:docs":"TARGET=docs vite build","prerelease":"rm -rf dist && pnpm run build:lib","test:debug":"vitest --inspect-brk=127.0.0.1:3000 --no-file-parallelism","prettier:ci":"prettier --check \"**/*.{css,html,js,json,jsx,ts,tsx}\"","compile:docs":"node --loader ts-node/esm ./scripts/docs/run.ts","compile:code-snippets":"node --loader ts-node/esm ./scripts/code-snippets/run.ts"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"repository":{"url":"git+https://github.com/bvaughn/react-window.git","type":"git"},"_npmVersion":"11.4.2","description":"`react-window` is a component library that helps render large lists of data quickly and without the performance problems that often go along with rendering a lot of data. It's used in a lot of places, from React DevTools to the Replay browser.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"clsx":"^2.1.1","vite":"^7.0.4","husky":"^9.1.7","jsdom":"^26.1.0","react":"^19.1.0","eslint":"^9.30.1","vitest":"^3.2.4","csstype":"^3.1.3","globals":"^16.3.0","postcss":"^8.5.6","ts-node":"^10.9.2","zustand":"^5.0.7","prettier":"3.6.2","react-dom":"^19.1.0","@eslint/js":"^9.30.1","typescript":"~5.8.3","@types/node":"^24.2.0","lint-staged":"^16.1.4","tailwindcss":"^4.1.11","@types/react":"^19.1.8","tailwind-merge":"^3.3.1","ts-blank-space":"^0.6.2","vite-plugin-dts":"^4.5.4","@heroicons/react":"^2.2.0","@lezer/highlight":"latest","@types/react-dom":"^19.1.6","react-router-dom":"^7.6.3","vite-plugin-svgr":"^4.3.0","@codemirror/state":"latest","@headlessui/react":"^2.2.4","@tailwindcss/vite":"^4.1.11","typescript-eslint":"^8.35.1","@codemirror/lang-css":"latest","@codemirror/language":"latest","react-error-boundary":"^6.0.0","rollup-plugin-terser":"^7.0.2","@codemirror/lang-html":"latest","@tailwindplus/elements":"^1.0.5","@testing-library/react":"^16.3.0","typescript-json-schema":"^0.65.1","@headlessui/tailwindcss":"^0.2.2","react-docgen-typescript":"^2.4.0","@vitejs/plugin-react-swc":"^3.10.2","rollup-plugin-visualizer":"^6.0.3","@codemirror/lang-markdown":"latest","@testing-library/jest-dom":"^6.6.4","eslint-plugin-react-hooks":"^5.2.0","@codemirror/lang-javascript":"latest","@testing-library/user-event":"^14.6.1","eslint-plugin-react-refresh":"^0.4.20","@csstools/postcss-oklab-function":"^4.0.11"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-window_2.2.1-alpha.0_1760278201604_0.9392805840756151","host":"s3://npm-registry-packages-npm-production"},"readme":"<img src=\"https://react-window.vercel.app/og.png\" alt=\"react-window logo\" width=\"400\" height=\"210\" />\n\n`react-window` is a component library that helps render large lists of data quickly and without the performance problems that often go along with rendering a lot of data. It's used in a lot of places, from React DevTools to the Replay browser.\n\n## Support\n\nIf you like this project there are several ways to support it:\n\n- [Become a GitHub sponsor](https://github.com/sponsors/bvaughn/)\n- [Become an Open Collective sponsor](https://opencollective.com/react-window#sponsor)\n- or [buy me a coffee](http://givebrian.coffee/)\n\nThe following wonderful companies and individuals have sponsored react-window:\n\n<a href=\"https://opencollective.com/react-window/sponsor/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/0/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/1/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/2/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/3/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/4/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/5/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/6/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/7/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/8/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/9/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/10/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/10/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/11/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/11/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/12/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/12/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/13/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/13/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/14/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/14/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/15/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/15/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/16/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/16/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/17/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/17/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/18/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/18/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/19/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/19/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/20/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/20/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/21/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/21/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/22/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/22/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/23/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/23/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/24/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/24/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/25/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/25/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/26/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/26/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/27/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/27/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/28/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/28/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/sponsor/29/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/sponsor/29/avatar.svg\"></a>\n\n<a href=\"https://opencollective.com/react-window/backer/0/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/0/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/1/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/1/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/2/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/2/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/3/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/3/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/4/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/4/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/5/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/5/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/6/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/6/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/7/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/7/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/8/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/8/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/9/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/9/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/10/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/10/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/11/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/11/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/12/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/12/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/13/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/13/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/14/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/14/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/15/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/15/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/16/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/16/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/17/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/17/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/18/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/18/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/19/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/19/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/20/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/20/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/21/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/21/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/22/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/22/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/23/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/23/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/24/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/24/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/25/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/25/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/26/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/26/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/27/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/27/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/28/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/28/avatar.svg\"></a> <a href=\"https://opencollective.com/react-window/backer/29/website\" target=\"_blank\"><img src=\"https://opencollective.com/react-window/backer/29/avatar.svg\"></a>\n\n## Installation\n\nBegin by installing the library from NPM:\n\n```sh\nnpm install react-window\n```\n\n## TypeScript types\n\nTypeScript definitions are included within the published `dist` folder\n\n## FAQs\n\nFrequently asked questions can be found [here](https://react-window.vercel.app/common-questions).\n\n## Documentation\n\nDocumentation for this project is available at [react-window.vercel.app](https://react-window.vercel.app/); version 1.x documentation can be found at [react-window-v1.vercel.app](https://react-window-v1.vercel.app/).\n\n### List\n\n<!-- List:description:begin -->\nRenders data with many rows.\n<!-- List:description:end -->\n\n#### Required props\n\n<!-- List:required-props:begin -->\n\n<table>\n  <thead>\n    <tr>\n      <th>Name</th>\n      <th>Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>rowComponent</td>\n      <td><p>React component responsible for rendering a row.</p>\n<p>This component will receive an <code>index</code> and <code>style</code> prop by default.\nAdditionally it will receive prop values passed to <code>rowProps</code>.</p>\n<p>ℹ️ The prop types for this component are exported as <code>RowComponentProps</code></p>\n</td>\n    </tr>\n    <tr>\n      <td>rowCount</td>\n      <td><p>Number of items to be rendered in the list.</p>\n</td>\n    </tr>\n    <tr>\n      <td>rowHeight</td>\n      <td><p>Row height; the following formats are supported:</p>\n<ul>\n<li>number of pixels (number)</li>\n<li>percentage of the grid&#39;s current height (string)</li>\n<li>function that returns the row height (in pixels) given an index and <code>cellProps</code></li>\n<li>dynamic row height cache returned by the <code>useDynamicRowHeight</code> hook</li>\n</ul>\n<p>⚠️ Dynamic row heights are not as efficient as predetermined sizes.\nIt&#39;s recommended to provide your own height values if they can be determined ahead of time.</p>\n</td>\n    </tr>\n    <tr>\n      <td>rowProps</td>\n      <td><p>Additional props to be passed to the row-rendering component.\nList will automatically re-render rows when values in this object change.</p>\n<p>⚠️ This object must not contain <code>ariaAttributes</code>, <code>index</code>, or <code>style</code> props.</p>\n</td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- List:required-props:end -->\n\n#### Optional props\n\n<!-- List:optional-props:begin -->\n\n<table>\n  <thead>\n    <tr>\n      <th>Name</th>\n      <th>Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>className</td>\n      <td><p>CSS class name.</p>\n</td>\n    </tr>\n    <tr>\n      <td>style</td>\n      <td><p>Optional CSS properties.\nThe list of rows will fill the height defined by this style.</p>\n</td>\n    </tr>\n    <tr>\n      <td>children</td>\n      <td><p>Additional content to be rendered within the list (above cells).\nThis property can be used to render things like overlays or tooltips.</p>\n</td>\n    </tr>\n    <tr>\n      <td>defaultHeight</td>\n      <td><p>Default height of list for initial render.\nThis value is important for server rendering.</p>\n</td>\n    </tr>\n    <tr>\n      <td>listRef</td>\n      <td><p>Ref used to interact with this component&#39;s imperative API.</p>\n<p>This API has imperative methods for scrolling and a getter for the outermost DOM element.</p>\n<p>ℹ️ The <code>useListRef</code> and <code>useListCallbackRef</code> hooks are exported for convenience use in TypeScript projects.</p>\n</td>\n    </tr>\n    <tr>\n      <td>onResize</td>\n      <td><p>Callback notified when the List&#39;s outermost HTMLElement resizes.\nThis may be used to (re)scroll a row into view.</p>\n</td>\n    </tr>\n    <tr>\n      <td>onRowsRendered</td>\n      <td><p>Callback notified when the range of visible rows changes.</p>\n</td>\n    </tr>\n    <tr>\n      <td>overscanCount</td>\n      <td><p>How many additional rows to render outside of the visible area.\nThis can reduce visual flickering near the edges of a list when scrolling.</p>\n</td>\n    </tr>\n    <tr>\n      <td>rowKey</td>\n      <td><p>Lists use the row index as a <code>key</code> by default.\nThis prop can provide a custom <code>key</code> value.</p>\n<p>ℹ️ Custom keys can ensure better UX for sortable or filterable lists,\nparticularly if your row components are stateful.\nRefer to the <a href=\"https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key\">React documentation</a> for more info.</p>\n<p>⚠️ This prop cannot be auto-memoized because it is called during render.\nIt is important to always <code>useCallback</code> for this prop; do not use an inline function.</p>\n</td>\n    </tr>\n    <tr>\n      <td>tagName</td>\n      <td><p>Can be used to override the root HTML element rendered by the List component.\nThe default value is &quot;div&quot;, meaning that List renders an HTMLDivElement as its root.</p>\n<p>⚠️ In most use cases the default ARIA roles are sufficient and this prop is not needed.</p>\n</td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- List:optional-props:end -->\n\n### Grid\n\n<!-- Grid:description:begin -->\nRenders data with many rows and columns.\n\nℹ️ Unlike `List` rows, `Grid` cell sizes must be known ahead of time.\nEither static sizes or something that can be derived (from the data in `CellProps`) without rendering.\n<!-- Grid:description:end -->\n\n#### Required props\n\n<!-- Grid:required-props:begin -->\n\n<table>\n  <thead>\n    <tr>\n      <th>Name</th>\n      <th>Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>cellComponent</td>\n      <td><p>React component responsible for rendering a cell.</p>\n<p>This component will receive an <code>index</code> and <code>style</code> prop by default.\nAdditionally it will receive prop values passed to <code>cellProps</code>.</p>\n<p>ℹ️ The prop types for this component are exported as <code>CellComponentProps</code></p>\n</td>\n    </tr>\n    <tr>\n      <td>cellProps</td>\n      <td><p>Additional props to be passed to the cell-rendering component.\nGrid will automatically re-render cells when values in this object change.</p>\n<p>⚠️ This object must not contain <code>ariaAttributes</code>, <code>columnIndex</code>, <code>rowIndex</code>, or <code>style</code> props.</p>\n</td>\n    </tr>\n    <tr>\n      <td>columnCount</td>\n      <td><p>Number of columns to be rendered in the grid.</p>\n</td>\n    </tr>\n    <tr>\n      <td>columnWidth</td>\n      <td><p>Column width; the following formats are supported:</p>\n<ul>\n<li>number of pixels (number)</li>\n<li>percentage of the grid&#39;s current width (string)</li>\n<li>function that returns the column width (in pixels) given an index and <code>cellProps</code></li>\n</ul>\n</td>\n    </tr>\n    <tr>\n      <td>rowCount</td>\n      <td><p>Number of rows to be rendered in the grid.</p>\n</td>\n    </tr>\n    <tr>\n      <td>rowHeight</td>\n      <td><p>Row height; the following formats are supported:</p>\n<ul>\n<li>number of pixels (number)</li>\n<li>percentage of the grid&#39;s current height (string)</li>\n<li>function that returns the row height (in pixels) given an index and <code>cellProps</code></li>\n</ul>\n</td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- Grid:required-props:end -->\n\n#### Optional props\n\n<!-- Grid:optional-props:begin -->\n\n<table>\n  <thead>\n    <tr>\n      <th>Name</th>\n      <th>Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>className</td>\n      <td><p>CSS class name.</p>\n</td>\n    </tr>\n    <tr>\n      <td>dir</td>\n      <td><p>Indicates the directionality of grid cells.</p>\n<p>ℹ️ See HTML <code>dir</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/dir\">global attribute</a> for more information.</p>\n</td>\n    </tr>\n    <tr>\n      <td>style</td>\n      <td><p>Optional CSS properties.\nThe grid of cells will fill the height and width defined by this style.</p>\n</td>\n    </tr>\n    <tr>\n      <td>children</td>\n      <td><p>Additional content to be rendered within the grid (above cells).\nThis property can be used to render things like overlays or tooltips.</p>\n</td>\n    </tr>\n    <tr>\n      <td>columnKey</td>\n      <td><p>Grids use the column index as a <code>key</code> by default.\nThis prop can be used along with the <code>rowKey</code> prop to provide a custom <code>key</code> value.</p>\n<p>ℹ️ Custom keys can ensure better UX for sortable or filterable grids,\nparticularly if your cell components are stateful.\nRefer to the <a href=\"https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key\">React documentation</a> for more info.</p>\n<p>⚠️ This prop cannot be auto-memoized because it is called during render.\nIt is important to always <code>useCallback</code> for this prop; do not use an inline function.</p>\n</td>\n    </tr>\n    <tr>\n      <td>defaultHeight</td>\n      <td><p>Default height of grid for initial render.\nThis value is important for server rendering.</p>\n</td>\n    </tr>\n    <tr>\n      <td>defaultWidth</td>\n      <td><p>Default width of grid for initial render.\nThis value is important for server rendering.</p>\n</td>\n    </tr>\n    <tr>\n      <td>gridRef</td>\n      <td><p>Imperative Grid API.</p>\n<p>ℹ️ The <code>useGridRef</code> and <code>useGridCallbackRef</code> hooks are exported for convenience use in TypeScript projects.</p>\n</td>\n    </tr>\n    <tr>\n      <td>onCellsRendered</td>\n      <td><p>Callback notified when the range of rendered cells changes.</p>\n</td>\n    </tr>\n    <tr>\n      <td>onResize</td>\n      <td><p>Callback notified when the Grid&#39;s outermost HTMLElement resizes.\nThis may be used to (re)scroll a cell into view.</p>\n</td>\n    </tr>\n    <tr>\n      <td>overscanCount</td>\n      <td><p>How many additional rows/columns to render outside of the visible area.\nThis can reduce visual flickering near the edges of a grid when scrolling.</p>\n</td>\n    </tr>\n    <tr>\n      <td>rowKey</td>\n      <td><p>Grids use the row index as a <code>key</code> by default.\nThis prop can be used along with the <code>columnKey</code> prop to provide a custom <code>key</code> value.</p>\n<p>ℹ️ Custom keys can ensure better UX for sortable or filterable grids,\nparticularly if your cell components are stateful.\nRefer to the <a href=\"https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key\">React documentation</a> for more info.</p>\n<p>⚠️ This prop cannot be auto-memoized because it is called during render.\nIt is important to always <code>useCallback</code> for this prop; do not use an inline function.</p>\n</td>\n    </tr>\n    <tr>\n      <td>tagName</td>\n      <td><p>Can be used to override the root HTML element rendered by the List component.\nThe default value is &quot;div&quot;, meaning that List renders an HTMLDivElement as its root.</p>\n<p>⚠️ In most use cases the default ARIA roles are sufficient and this prop is not needed.</p>\n</td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- Grid:optional-props:end -->\n","publish_time":1760278201809,"_cnpm_publish_time":1760278201809,"dist-tags":{"alpha":"2.2.5-alpha.1","latest":"2.5.4","next":"1.6.0-alpha.1","rc":"1.0.0"}}