UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

18 lines (17 loc) 699 B
import React from 'react'; export interface ScrollListProps<T> { className?: string; style?: React.CSSProperties; renderItem: (item: T, index: number) => React.ReactNode; paddingHeight?: number; loadMoreItems?: () => void | Promise<void>; scrollTo?: () => 'top' | 'bottom' | string; hasMore?: boolean; scrollDirection?: 'up' | 'down'; prefix?: string; data: Array<T>; loading: boolean; onScroll?: (e: Event) => void; } declare const ScrollList: <T>() => React.MemoExoticComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<ScrollListProps<T> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>>>; export { ScrollList };