react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
18 lines (17 loc) • 510 B
TypeScript
import React from "react";
import "./VirtualList.css";
export interface VirtualListPropsRenderRowProps<T> {
index: number;
row: T;
}
export interface VirtualListProps<T> {
rows: T[];
rowHeight?: number;
renderRow: (props: VirtualListPropsRenderRowProps<T>) => React.ReactNode;
getRowKey?: (row: T) => string;
}
/**
* Virtualization at row level. Great for long lists and tables with few
* columns.
*/
export declare const VirtualList: <T>(props: VirtualListProps<T>) => JSX.Element;