0.0.1 • Published 5 years ago
@lsky/reac-monaco-editor v0.0.1
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
Name | Type | Default | Description |
---|---|---|---|
value | string | null | editor value |
width | number | 100% | null | editor width |
height | number | 100% | null | editor height |
language | string | null | editor language |
theme | string | vs | vs, vs-dark, active4d, clouds, chrome, monokai, solarized-dark, solarized-light, MonacoTheme |
options | object | null | IEditorOptions |
style | object | null | editor outer container style |
onChange | func | (value) => void | triggered when the editor value changes |
editorDidMount | func | (editor, monaco) => void | triggered when the editor did mounted |
0.0.1
5 years ago