mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
feat: skeleton
This commit is contained in:
1 parent
f7c6fdd861
commit
b50c47b744
11 files changed
+88
-28
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { times } from "lodash-es";
|
||||
import { useEffect, useRef, useState, type ReactNode } from "react";
|
||||
import type { SkeletonProps } from "../../types/SkeletonProps";
|
||||
import type { PropsWithSkeleton } from "../../types/propsWithSkeleton";
|
||||
import "./index.css";
|
||||
|
||||
export interface IncrementalLoaderProps<Props extends { key: string }> {
|
||||
@@ -10,7 +10,7 @@ export interface IncrementalLoaderProps<Props extends { key: string }> {
|
||||
|
||||
skeleton?: boolean;
|
||||
data: Props[];
|
||||
Component: (props: SkeletonProps<Omit<Props, "key">>) => ReactNode;
|
||||
Component: (props: PropsWithSkeleton<Omit<Props, "key">>) => ReactNode;
|
||||
}
|
||||
|
||||
export function IncrementalLoader<Props extends { key: string }>({
|
||||
|
||||
Reference in new issue
Block a user