UNPKG

virtua

Version:

A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte.

21 lines (20 loc) 723 B
/** * @jsxImportSource solid-js */ import { JSX } from "solid-js"; import { ViewportComponentAttributes } from "./types"; import { VirtualizerHandle, VirtualizerProps } from "./Virtualizer"; /** * Methods of {@link VList}. */ export interface VListHandle extends VirtualizerHandle { } /** * Props of {@link VList}. */ export interface VListProps<T> extends Pick<VirtualizerProps<T>, "ref" | "data" | "children" | "overscan" | "itemSize" | "shift" | "horizontal" | "cache" | "item" | "onScroll" | "onScrollEnd" | "keepMounted">, ViewportComponentAttributes { } /** * Virtualized list component. See {@link VListProps} and {@link VListHandle}. */ export declare const VList: <T>(props: VListProps<T>) => JSX.Element;