Nonconformist Propaganda Machine

npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

@nteract/monaco-editor

3.0.3 • 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

5

version

3.0.3

license

BSD-3-Clause

repository

Gitgithub

last publish

collaborators

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