MCPcopy Create free account
hub / github.com/bvaughn/react-window

github.com/bvaughn/react-window

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.5.4 ↗ · + Follow · compare 6 versions
374 symbols 1,007 edges 252 files 3 documented · 1% ● updated 6d ago2.5.3 · 2026-11-01★ 17,213

Browse by type

⨍ Functions 365◇ Types & classes 9
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-window logo

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.

Support

If you like this project there are several ways to support it:

The following wonderful companies and individuals have sponsored react-window:

Installation

Begin by installing the library from NPM:

npm install react-window

TypeScript types

TypeScript definitions are included within the published dist folder

FAQs

Frequently asked questions can be found here.

Documentation

Documentation for this project is available at react-window.vercel.app.

Components

Grid

Renders data with many rows and columns.

ℹ️ Unlike List rows, Grid cell sizes must be known ahead of time. Either static sizes or something that can be derived (from the data in CellProps) without rendering.

Required props

Name Description
cellComponent React component responsible for rendering a cell. This component will receive columnIndex, rowIndex, and style props by default. Additionally it will receive prop values passed to cellProps. ℹ️ The prop types for this component are exported as CellComponentProps
cellProps Additional props to be passed to the cell-rendering component. Grid will automatically re-render cells when values in this object change. ⚠️ This object must not contain ariaAttributes, columnIndex, rowIndex, or style props.
columnCount Number of columns to be rendered in the grid.
columnWidth Column width; the following formats are supported:
  • number of pixels (number)
  • percentage of the grid's current width (string)
  • function that returns the column width (in pixels) given an index and cellProps
ℹ️ Percentage widths can't be resolved during server rendering unless a defaultWidth (or a pixel width via the style prop) is specified.
rowCount Number of rows to be rendered in the grid.
rowHeight Row height; the following formats are supported:
  • number of pixels (number)
  • percentage of the grid's current height (string)
  • function that returns the row height (in pixels) given an index and cellProps
ℹ️ Percentage heights can't be resolved during server rendering unless a defaultHeight (or a pixel height via the style prop) is specified.

Optional props

Name Description
className CSS class name.
dir Indicates the directionality of grid cells. ℹ️ The directionality of an ancestor element can't be detected during server rendering; specify this prop explicitly for server-rendered right-to-left grids. ℹ️ See HTML dir global attribute for more information.
style Optional CSS properties. The grid of cells will fill the height and width

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 358
Method 7
Interface 5
Class 4

Languages

TypeScript100%

Modules by API surface

lib/components/list/List.test.tsx14 symbols
lib/utils/test/mockResizeObserver.ts13 symbols
lib/hydration.test.tsx10 symbols
src/routes/components/animated/AnimatedList.tsx9 symbols
lib/utils/scrollElement.ts9 symbols
integrations/vite/src/routes/ScrollElement.tsx8 symbols
lib/components/virtualizer/useVirtualizer.test.tsx7 symbols
integrations/tests/tests/scroll-element.spec.tsx7 symbols
lib/ssr.test.tsx6 symbols
lib/components/grid/Grid.test.tsx6 symbols
src/routes/list/examples/ListWithStickyRows.tsx5 symbols
lib/virtualization.test.tsx5 symbols

Dependencies from manifests, versioned

@csstools/postcss-oklab-function4.0.11 · 1×
@eslint/js9.30.1 · 1×
@headlessui/react2.2.4 · 1×
@headlessui/tailwindcss0.2.2 · 1×
@heroicons/react2.2.0 · 1×
@playwright/test1 · 1×
@tailwindcss/vite4.1.11 · 1×
@tailwindplus/elements1.0.5 · 1×
@testing-library/react16.3.0 · 1×

For agents

$ claude mcp add react-window \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page