@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
25 lines • 649 B
TypeScript
import type { Code } from "../CodeHighlighter/types.js";
export type CreateDemoDataMeta = {
name?: string;
slug?: string;
displayName?: string;
skipPrecompute?: boolean;
precompute?: Code;
client?: React.ComponentType<{
children: React.ReactNode;
}>;
};
export type DemoData<T extends React.ComponentType<any> = React.ComponentType> = {
name: string;
slug: string;
displayName: string;
precompute: Code | undefined;
url: string;
components: {
[key: string]: T;
};
};
export type DemoGlobalProvider = React.ComponentType<{
children: React.ReactNode;
}>;
export type DemoGlobalData = DemoData<DemoGlobalProvider>;