UNPKG

react-ui89

Version:

A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.

20 lines (19 loc) 593 B
import React from "react"; import "./Ui89VirtualList.css"; export interface Ui89VirtualListPropsRenderRowProps<T> { index: number; row: T; } export interface Ui89VirtualListProps<T> { maxHeight?: string; rows: T[]; rowHeight?: number; renderRow: (props: Ui89VirtualListPropsRenderRowProps<T>) => React.ReactNode; getRowKey?: (row: T) => string; } /** * Virtualization at row level. Great for long lists. * * Can be used to implement table components with few columns. */ export declare const Ui89VirtualList: <T>(props: Ui89VirtualListProps<T>) => JSX.Element;