Skip to content

Commit 22bb903

Browse files
committed
doc: Update previewWidth document. (#192)
1 parent fcf1180 commit 22bb903

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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. */

website/Example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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={() => {

0 commit comments

Comments
 (0)