@opentf/react-sandbox
Version:
The CodeSandbox sandpack wrapper with tabs layout.
19 lines (16 loc) • 581 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { SandpackPredefinedTemplate, SandpackThemeProp } from '@codesandbox/sandpack-react';
interface Props {
code: string;
layout?: 'Default' | 'Tabs' | 'Code_Console';
consoleType?: 'Basic' | 'Advanced';
tabIndex?: number;
deps?: string[];
files?: Record<string, string>;
template?: SandpackPredefinedTemplate;
cdns?: string[];
style?: Record<string, string>;
theme?: SandpackThemeProp;
}
declare function SandBox(props: Props): react_jsx_runtime.JSX.Element;
export { SandBox };