Skip to content

Commit b7386d2

Browse files
authored
Update integrate-monaco-editor.mdx (#765)
1 parent 0060ea0 commit b7386d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/src/pages/guides/integrate-monaco-editor.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ Finally, using a `SandpackProvider` you can integrate the `MonacoEditor` compone
8989
```jsx
9090
export default function MySandpack() {
9191
return (
92-
<SandpackProvider template="react">
93-
<SandpackLayout theme="dark">
92+
<SandpackProvider template="react" theme="dark">
93+
<SandpackLayout>
9494
<MonacoEditor /> // Your Monaco Editor Component
95-
<SandpackPreview customStyle={{ height: "100vh" }} />
95+
<SandpackPreview style={{ height: "100vh" }} />
9696
</SandpackLayout>
9797
</SandpackProvider>
9898
);

0 commit comments

Comments
 (0)