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 {
246246 hideToolbar? : boolean ;
247247 /** Override the default preview component */
248248 renderPreview? : (props : MarkdownPreviewProps , initVisible : boolean ) => React .ReactNode ;
249+ /** Preview expanded width @default `50%` */
250+ previewWidth? : string ;
249251 /** Tool display settings. */
250252 toolbars? : IToolBarProps [' toolbars' ];
251253 /** Tool display settings. */
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function Example() {
1212 const [ hideToolbar , setHideToolbar ] = useState ( true ) ;
1313 return (
1414 < 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 } />
1616 < div style = { { marginTop : 10 , display : 'flex' , gap : '10px' } } >
1717 < button
1818 onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments