- CombinedSandbox(__namedParameters, ref): Element
Returns Element
- CombinedSandbox(props): ReactNode
Parameters
- props: Omit<Omit<CodeSandboxProps, "files" | "eventHandlers" | "onMessage"> & {
configFormatter?: ((json: object) => object);
filesFormatter?: ((files: IFiles) => IFiles);
injectScript?: string;
isPreview?: boolean;
mode?: "single" | "combined";
navigatorExtra?: ReactNode;
onLoad?: ((config?: ISandboxEventHandlerConfig) => void);
onMessage?: ((data: any, config?: ISandboxEventHandlerConfig) => void);
onViewChange?: ((data: any, config?: ISandboxEventHandlerConfig) => void);
sandboxType?: "design" | "preview";
selectionTools?: (string | ReactElement<any, string | JSXElementConstructor<any>>)[];
} & RefAttributes<CombinedSandboxRef>, "ref"> & {
ref?: Ref<CombinedSandboxRef>;
}
Returns ReactNode
Properties
Readonly
$$typeof
$$typeof: symbol
Optional
displayName
displayName?: string
Readonly
type
type: ForwardRefExoticComponent<Omit<CodeSandboxProps, "files" | "eventHandlers" | "onMessage"> & { configFormatter?: ((json: object) => object); filesFormatter?: ((files: IFiles) => IFiles); injectScript?: string; isPreview?: boolean; mode?: "single" | "combined"; navigatorExtra?: ReactNode; onLoad?: ((config?: ISandboxEventHandlerConfig) => void); onMessage?: ((data: any,
config?: ISandboxEventHandlerConfig) => void); onViewChange?: ((data: any,
config?: ISandboxEventHandlerConfig) => void); sandboxType?: "design" | "preview"; selectionTools?: (string | ReactElement<any, string | JSXElementConstructor<any>>)[]; } & RefAttributes<CombinedSandboxRef>>
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.