We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d0cf6 commit 6c0568cCopy full SHA for 6c0568c
packages/mdx/src/client/preview.tsx
@@ -16,12 +16,14 @@ export function Preview({
16
show,
17
children,
18
codeConfig,
19
+ style,
20
...rest
21
}: {
22
className: string
23
files: EditorStep["files"]
24
presetConfig?: PresetConfig
25
show?: string
26
+ style?: React.CSSProperties
27
children?: React.ReactNode
28
codeConfig: { theme: EditorTheme }
29
}) {
@@ -30,6 +32,7 @@ export function Preview({
30
32
className={
31
33
"ch-preview" + (className ? " " + className : "")
34
}
35
+ style={style}
36
>
37
<MiniBrowser
38
loadUrl={show}
0 commit comments