UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

19 lines 1.21 kB
import { VirtualItem, Virtualizer } from '@tanstack/react-virtual'; import { StyledTanStackTableProps } from './StyledTanStackTable'; import { TrProps } from './types'; type StyledVirtualTanStackTableProps<T = unknown> = Omit<StyledTanStackTableProps<T, VirtualItem>, 'slots' | 'rows' | 'rowTransform'> & { rowVirtualizer: Virtualizer<any, any>; onTableContainerScroll?: (target: EventTarget) => void; }; /** * A table row component modified to be used with @tanstack/react-virtual. */ export declare function VirtualizedTr<TData = unknown>(props: TrProps<TData, VirtualItem>): import("react/jsx-runtime").JSX.Element; /** * Stylized table component that is compatible with @tanstack/react-table and @tanstack/react-virtual to display a * virtualized table, i.e. a table that uses a virtualizer to only render the DOM nodes that contain data that is visible * within the viewport. For cases where the table rows do not need to be virtualized, use {@link StyledTanStackTable}. */ export default function StyledVirtualTanStackTable<T = unknown>(props: StyledVirtualTanStackTableProps<T>): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=StyledVirtualTanStackTable.d.ts.map