@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
16 lines • 1 kB
text/typescript
import * as React from 'react';
import type { CodeHighlighterProps } from "./types.mjs";
/**
* Isomorphic entry for a code block. Validates and normalizes props, then maps them
* onto the generic {@link CodeHighlighterChunk} (a `createCoordinatedLazy` chunk):
* the decision inputs (`controlled`/`isInitial`/`forceClient`) computed by
* {@link buildCodeHighlighterChunkProps} route between rendering the client directly
* (precomputed content), dynamically importing the server `Loader` (load all
* variants), or the server `InitialLoader` (load a quick initial first). When a
* `ContentLoading` and an initial paint are available, the loading fallback +
* compressed residual are prepared up front via {@link prepareInitialSource}.
*
* The heavy load/parse pipeline lives behind the dynamically-imported loaders, so it
* never reaches the path that renders precomputed content.
*/
export declare function CodeHighlighter<T extends {}>(props: CodeHighlighterProps<T>): React.ReactElement;