diff --git a/sandpack-react/src/Playground.stories.tsx b/sandpack-react/src/Playground.stories.tsx
index 86cb7ec51..a8bfc2639 100644
--- a/sandpack-react/src/Playground.stories.tsx
+++ b/sandpack-react/src/Playground.stories.tsx
@@ -5,12 +5,5 @@ export default {
};
export const Main = (): JSX.Element => {
- return (
-
- );
+ return ;
};
diff --git a/sandpack-react/src/presets/Sandpack.tsx b/sandpack-react/src/presets/Sandpack.tsx
index 3bd6743d9..83a627791 100644
--- a/sandpack-react/src/presets/Sandpack.tsx
+++ b/sandpack-react/src/presets/Sandpack.tsx
@@ -1,4 +1,5 @@
import { ClasserProvider } from "@code-hike/classer";
+import type { SandpackLogLevel } from "@codesandbox/sandpack-client";
import * as React from "react";
import { SandpackLayout } from "../common/Layout";
@@ -69,6 +70,7 @@ export interface SandpackProps {
* appears when `readOnly` is `true`
*/
showReadOnly?: boolean;
+ logLevel?: SandpackLogLevel;
};
}
@@ -118,6 +120,7 @@ export const Sandpack: React.FC = (props) => {
initMode: props.options?.initMode,
initModeObserverOptions: props.options?.initModeObserverOptions,
externalResources: props.options?.externalResources,
+ logLevel: props.options?.logLevel,
};
// Parts are set as `flex` values, so they set the flex shrink/grow