import { MarkdownEditor, MarkdownEditorProps } from "mui-extended"; const props: MarkdownEditorProps; const markdownEditor = <MarkdownEditor {...props} />;
TextareaAutosize
inlinePreview
- boolean , if true preview is displayed below the write sectionmenu
- string[][] - customized menu ordermenuButtons
- FunctionComponents to render Menu ButtonsmenuActions
- functions to add custom logic to buttons
export type MarkdownEditorMenuButtonAction = ( name: string, content: string, selectionStart: number, selectionEnd: number ) => { content: string; selectionStart: number; selectionEnd: number };
Wrapped around TextareaAutosize
menu
can be customized by
Note
If used as InputComponent for TextField
, add bellow props to TextField
const props = { InputLabelProps:{{ shrink: true }}, fullWidth : true }
Write an email to opensource@sodaru.com