Getting started
Install
npx nuxi@latest module add nuxt-monaco-editor
Don't forget to install monaco-editor
.
Setup
- Add this module to the Nuxt config
export default defineNuxtConfig({
modules: [
'nuxt-monaco-editor'
]
})
- Use the component in your pages or components
<template>
<MonacoEditor lang="typescript" />
</template>