fumadocs-ui
Version:
The Radix UI version of Fumadocs UI
32 lines (31 loc) • 969 B
TypeScript
import { CodeBlockProps } from "./codeblock.js";
import * as react_jsx_runtime40 from "react/jsx-runtime";
import { HighlightOptionsCommon, HighlightOptionsThemes } from "fumadocs-core/highlight";
//#region src/components/dynamic-codeblock.d.ts
interface DynamicCodeblockProps {
lang: string;
code: string;
/**
* Extra props for the underlying `<CodeBlock />` component.
*
* Ignored if you defined your own `pre` component in `options.components`.
*/
codeblock?: CodeBlockProps;
/**
* Wrap in React `<Suspense />` and provide a fallback.
*
* @defaultValue true
*/
wrapInSuspense?: boolean;
options?: Omit<HighlightOptionsCommon, 'lang'> & HighlightOptionsThemes;
}
declare function DynamicCodeBlock({
lang,
code,
codeblock,
options,
wrapInSuspense
}: DynamicCodeblockProps): react_jsx_runtime40.JSX.Element;
//#endregion
export { DynamicCodeBlock, DynamicCodeblockProps };
//# sourceMappingURL=dynamic-codeblock.d.ts.map