feature/loading #21

Merged
ilia merged 12 commits from feature/loading into main 2026-02-06 09:20:09 +00:00
Showing only changes of commit e4aacf609e - Show all commits

View File

@@ -101,13 +101,25 @@ interface Props {
* @template T - The type of items in the list
*/
children: Snippet<
[{ item: T; index: number; isFullyVisible: boolean; isPartiallyVisible: boolean; proximity: number }]
[
{
item: T;
index: number;
isFullyVisible: boolean;
isPartiallyVisible: boolean;
proximity: number;
},
]
>;
/**
* Whether to use the window as the scroll container.
* @default false
*/
useWindowScroll?: boolean;
/**
* Flag to show loading state
*/
isLoading?: boolean;
}
let {
@@ -120,6 +132,7 @@ let {
onNearBottom,
children,
useWindowScroll = false,
isLoading = false,
}: Props = $props();
// Reference to the ScrollArea viewport element for attaching the virtualizer