UNPKG

react-code-canvas

Version:

A browser-based canvas for rendering React components at runtime

9 lines (8 loc) 338 B
import { UseLiveRunnerRetrun } from './useLiveRunner'; import { Language, Theme } from './types'; export type LiveContextProps = UseLiveRunnerRetrun & { language?: Language; theme?: Theme; }; export declare const LiveContext: import("react").Context<LiveContextProps>; export declare const useLiveContext: () => LiveContextProps;