https://github.com/krzyzanowskim/monaco-editor-vue-component
MonacoEditor component for Vue.js
https://github.com/krzyzanowskim/monaco-editor-vue-component
Last synced: 3 months ago
JSON representation
MonacoEditor component for Vue.js
- Host: GitHub
- URL: https://github.com/krzyzanowskim/monaco-editor-vue-component
- Owner: krzyzanowskim
- License: mit
- Created: 2023-04-03T10:37:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T07:24:36.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:11:18.449Z (over 1 year ago)
- Language: Vue
- Size: 24.4 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Install and basic usage
```bash
$ npm i -s monaco-editor-vue-component
```Register the component:
```js
import MonacoPlugin from 'monaco-editor-vue-component'const app = createApp(App)
app.use(MonacoPlugin)
app.mount('#app')
```Use the component:
```vue
import { ref } from "vue";
const sourceCode = ref('// Welcome')
```
## License
[MIT license](LICENSE)