0.0.1 • Published 6 years ago
@lsky/reac-monaco-editor v0.0.1
react-monaco-editor
Monaco Editor for React
Installing
$ yarn add @react/monaco-editorDevelopment
To build the example locally, run:
git clone https://github.com/lsky-walt/react-monaco-editor.git
cd react-monaco-editor
yarn install
yarn startMonaco 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
6 years ago