Skip to content

Commit 6c0568c

Browse files
committed
Apply style to ch-preview
1 parent 11d0cf6 commit 6c0568c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/mdx/src/client/preview.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export function Preview({
1616
show,
1717
children,
1818
codeConfig,
19+
style,
1920
...rest
2021
}: {
2122
className: string
2223
files: EditorStep["files"]
2324
presetConfig?: PresetConfig
2425
show?: string
26+
style?: React.CSSProperties
2527
children?: React.ReactNode
2628
codeConfig: { theme: EditorTheme }
2729
}) {
@@ -30,6 +32,7 @@ export function Preview({
3032
className={
3133
"ch-preview" + (className ? " " + className : "")
3234
}
35+
style={style}
3336
>
3437
<MiniBrowser
3538
loadUrl={show}

0 commit comments

Comments
 (0)