fui-fancyui
Version:
FancyUI Libary
19 lines (18 loc) • 629 B
TypeScript
import { CSSProp } from 'styled-components';
export type TVirtualScrollProps = {
children: React.ReactNode[];
containerHeight?: string;
preRenderCount?: number;
itemHeight?: number;
firstItemIndexInView?: number;
scrollSnap?: 'mandatory' | 'proximity' | 'none';
itemGap?: number;
currentFirstItemsInViewHandler?: (index: number) => void;
attributesContainer?: HTMLDivProps;
attributesItems?: HTMLDivProps;
onScrollingStateChange?: (isScrolling: boolean) => void;
};
type HTMLDivProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> & {
$externalStyle: CSSProp;
};
export {};