File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,8 @@ export interface IMarkdownEditor extends ReactCodeMirrorProps {
246
246
hideToolbar? : boolean ;
247
247
/** Override the default preview component */
248
248
renderPreview? : (props : MarkdownPreviewProps , initVisible : boolean ) => React .ReactNode ;
249
+ /** Preview expanded width @default `50%` */
250
+ previewWidth? : string ;
249
251
/** Tool display settings. */
250
252
toolbars? : IToolBarProps [' toolbars' ];
251
253
/** Tool display settings. */
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function Example() {
12
12
const [ hideToolbar , setHideToolbar ] = useState ( true ) ;
13
13
return (
14
14
< div className = { styles . editor } >
15
- < MarkdownEditor visible = { visible } previewWidth = "100%" height = "500px" value = { mdstr } hideToolbar = { hideToolbar } />
15
+ < MarkdownEditor visible = { visible } height = "500px" value = { mdstr } hideToolbar = { hideToolbar } />
16
16
< div style = { { marginTop : 10 , display : 'flex' , gap : '10px' } } >
17
17
< button
18
18
onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments