monaco-vue3
v0.0.1
Published
Monaco Editor inside VueJS 3
Downloads
3
Readme
monaco-vue3
The Monaco Editor for VueJS v3.
Install
npm i monaco-vue3
Usage
<script setup>
import MonacoEditor from 'monaco-vue3';
</script>
<template>
<MonacoEditor onChange="onChangeMethod" initialValue="console.log('Hello World!')" />
</template>
Props
onChange
- Type:
Function
Gets a value of the editor whenever it changes.
initialValue
- Type:
string
Initial value of the editor.
config
- Type:
Object
More configuration to be passed to Monaco Editor.