Skip to content

Commit

Permalink
doc: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 29, 2023
1 parent 64c06df commit 327be93
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ react-monacoeditor

[Monaco Editor](https://github.com/Microsoft/monaco-editor) component for React. demo @[jaywcjlove.github.io/react-monacoeditor/](https://jaywcjlove.github.io/react-monacoeditor/)

<!--rehype:ignore:start-->
<a href="https://jaywcjlove.github.io/react-monacoeditor/"><img src="https://raw.githubusercontent.com/jaywcjlove/react-monacoeditor/master/react-monacoeditor.png" /></a>

<!--rehype:ignore:end-->
<!--dividing-->

## Installation
Expand All @@ -23,17 +25,22 @@ npm install @uiw/react-monacoeditor --save

[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-monacoeditor-example-hgqfj?fontsize=14&hidenavigation=1&theme=dark)

```js
```jsx mdx:preview
import React from 'react';
import MonacoEditor from '@uiw/react-monacoeditor';

<MonacoEditor
language="html"
value="<h1>I ♥ react-monacoeditor</h1>"
options={{
theme: 'vs-dark',
}}
/>
export default function Demo() {
return (
<MonacoEditor
language="html"
value="<h1>I ♥ react-monacoeditor</h1>"
height="300px"
options={{
theme: 'vs-dark',
}}
/>
);
}
```

## Using with Webpack
Expand Down

0 comments on commit 327be93

Please sign in to comment.