
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@aldabil/react-window-scroller
Advanced tools
Window scroller component for react-window
yarn add react-window-scroller
Check out the examples: https://federicodirosa.github.io/react-window-scroller
With a List component:
import React from 'react'
import { FixedSizeList as List } from 'react-window'
import { ReactWindowScroller } from 'react-window-scroller'
const App = () => (
<ReactWindowScroller>
{({ ref, outerRef, style, onScroll }) => (
<List
ref={ref}
outerRef={outerRef}
style={style}
height={window.innerHeight}
itemCount={1000}
itemSize={100}
onScroll={onScroll}
>
{Row}
</List>
)}
</ReactWindowScroller>
)
With a Grid component:
import React from 'react'
import { VariableSizeGrid as Grid } from 'react-window'
import { ReactWindowScroller } from 'react-window-scroller'
const App = () => (
<ReactWindowScroller isGrid>
{({ ref, outerRef, style, onScroll }) => (
<Grid
ref={ref}
outerRef={outerRef}
style={style}
height={window.innerHeight}
width={window.innerWidth}
columnCount={1000}
columnWidth={(index) => columnWidths[index]}
rowCount={1000}
rowHeight={(index) => rowHeights[index]}
onScroll={onScroll}
>
{Cell}
</Grid>
)}
</ReactWindowScroller>
)
Prop name | Type | Description | Default |
---|---|---|---|
children | function | Render props function called with 4 props: ref , outerRef , style and onScroll | undefined |
throttleTime | number | Timing (ms) for the throttle on window scroll event handler | 10 |
isGrid | boolean | Set to true if rendering a react-window Grid component (FixedSizeGrid or VariableSizeGrid) | false |
MIT © FedericoDiRosa
FAQs
Window scroller component for react-window
The npm package @aldabil/react-window-scroller receives a total of 4 weekly downloads. As such, @aldabil/react-window-scroller popularity was classified as not popular.
We found that @aldabil/react-window-scroller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.