An easy to use component that intergrates monaco editor in your svelte application.
<script>
import { MonacoEditor} from "svelte-monaco-editor";
let editorValue;
</script>
<MonacoEditor style="width: 100%; height: 40vh;" language="javascript" bind:value={editorValue}/>
<!--
Value - Editor Value, Type - String
-->
<script>
let value;
</script>
<MonacoEditor value={value}/>
<!--
Style - CSS Styles, Type - String
-->
<MonacoEditor style="width: 100%;/>
<!--
ClassName - CSS Class, Type - String
-->
<MonacoEditor className="editor"/>
<!--
EditorRef - Editor Reference, Type - Any
Any code that have to be executed on editor, like configuration can be done by editorRef.
-->
<script>
let editor;
</script>
<MonacoEditor editorRef={editor}/>
<!--
Minimap - Minimap in Editor, Type - Boolean
-->
<MonacoEditor minimap={false}/>