npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@nteract/monaco-editor

3.0.2 • Public • Published

@nteract/monaco-editor

This package implements a React component with a Monaco-based code editor. To see this package in action, you can view the source code for rendering text files in the nteract-on-Jupyter application.

Installation

$ yarn add @nteract/monaco-editor
$ npm install --save @nteract/monaco-editor

Usage

The example below shows how we can use this package to render an editor for plain-text content.

import MonacoEditor from "@nteract/monaco-editor";
 
export default () => {
  return (
    <MonacoEditor
      theme="vscode"
      mode="text/plain"
      value={"These are some words in an editor."}
    />
  );
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:monaco-editor label.

License

BSD-3-Clause

install

npm i @nteract/monaco-editor

Downloadsweekly downloads

12

version

3.0.2

license

BSD-3-Clause

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability