aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
58 lines • 1.3 kB
TypeScript
import React, { ReactNode } from "react";
export interface GlassInfiniteScrollProps {
/**
* Children to render
*/
children: ReactNode;
/**
* Load more handler
*/
onLoadMore: () => void | Promise<void>;
/**
* Has more items to load
*/
hasMore: boolean;
/**
* Loading state
*/
loading?: boolean;
/**
* Error state
*/
error?: string | null;
/**
* Threshold distance from bottom to trigger load (pixels)
*/
threshold?: number;
/**
* Custom loading indicator
*/
loadingIndicator?: ReactNode;
/**
* Custom error indicator
*/
errorIndicator?: ReactNode;
/**
* End of list message
*/
endMessage?: ReactNode;
/**
* Scroll container className
*/
className?: string;
/**
* Reverse scroll direction (for chat-like interfaces)
*/
reverse?: boolean;
/**
* Auto-scroll to bottom on new content
*/
autoScroll?: boolean;
}
/**
* GlassInfiniteScroll component
* Infinite scrolling container with loading states and error handling
*/
export declare const GlassInfiniteScroll: React.FC<GlassInfiniteScrollProps>;
export default GlassInfiniteScroll;
//# sourceMappingURL=GlassInfiniteScroll.d.ts.map