0.0.1 • Published 5 years ago

@lsky/reac-monaco-editor v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

react-monaco-editor

Monaco Editor for React


Installing

$ yarn add @react/monaco-editor

Development

To build the example locally, run:

git clone https://github.com/lsky-walt/react-monaco-editor.git

cd react-monaco-editor

yarn install

yarn start

Monaco Editor

Props

NameTypeDefaultDescription
valuestringnulleditor value
widthnumber | 100%nulleditor width
heightnumber | 100%nulleditor height
languagestringnulleditor language
themestringvsvs, vs-dark, active4d, clouds, chrome, monokai, solarized-dark, solarized-light, MonacoTheme
optionsobjectnullIEditorOptions
styleobjectnulleditor outer container style
onChangefunc(value) => voidtriggered when the editor value changes
editorDidMountfunc(editor, monaco) => voidtriggered when the editor did mounted