UNPKG

virtua

Version:

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

10 lines (9 loc) 349 B
export declare const styleToString: (obj: Record<string, string | undefined>) => string; export declare const defaultGetKey: (_data: unknown, i: number) => string; /** * A function that provides properties/attributes for item element */ export type ItemProps<T = unknown> = (payload: { item: T; index: number; }) => ItemAttrs | undefined;