UNPKG

@slashid/react

Version:

React SDK for the /id platform

18 lines 721 B
import { type ReactNode } from "react"; type Props = { /** Period of time, after which the component will render its children */ delayMs: number; children: ReactNode; /** Optional fallback component rendered initially, replaced by children after the delay */ fallback?: ReactNode | (({ secondsRemaining }: { secondsRemaining: number; }) => ReactNode); /** Optional CSS class name for the wrapper */ className?: string; }; /** * Utility component used to render its children after specified period of time */ export declare function Delayed({ delayMs, children, fallback, className }: Props): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map