@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
14 lines • 755 B
text/typescript
import * as React from 'react';
import type { CoordinatedLazyProps } from "./types.mjs";
/**
* Show `fallback` until `ready` (and the page-coordinated swap conditions) are
* met, then swap to `content`. The fallback is force-mounted once so its
* `useCoordinatedFallback` hoist runs even when the content is precomputed; the
* hoisted data is handed down to `content` via `useCoordinatedContent`.
*
* Generalizes the state-driven fallback<->content swap from
* `CodeHighlighterClient`. Advanced consumers that need to fold the hoisted data
* into their own `ready` computation should use {@link useCoordinatedSwap}
* directly instead of this component.
*/
export declare function CoordinatedLazy(props: CoordinatedLazyProps): React.ReactElement;