@furystack/shades
Version:
A lightweight UI framework for FuryStack with JSX support
13 lines • 596 B
TypeScript
import type { ViewTransitionConfig } from '../view-transition.js';
export interface LazyLoadProps {
loader: JSX.Element;
error?: (error: unknown, retry: () => Promise<void>) => JSX.Element;
component: () => Promise<JSX.Element>;
viewTransition?: boolean | ViewTransitionConfig;
}
export declare const LazyLoad: (props: LazyLoadProps & Omit<Partial<HTMLElement>, "style"> & {
style?: Partial<CSSStyleDeclaration>;
} & {
ref?: import("../index.js").RefObject<Element>;
}, children?: import("../index.js").ChildrenList) => JSX.Element;
//# sourceMappingURL=lazy-load.d.ts.map