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