1.4.0 • Published 1 year ago

@uwu/monaco-svelte v1.4.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

Svelte simple-monaco

Please read the main readme here.

<script>
  import Monaco from "@uwu/monaco-svelte";
  import { writable } from "svelte/store";

  let value = writable(""); // Writable<string> | Readable<string>
</script>

<!-- value and lang are required, but not others -->
<Monaco
  {value}
  lang="javascript"
  theme="Monokai"
  readonly={false}
  height="30rem"
  width="20rem"
  otherCfg={{}}
/>

<pre><code>{$value}</code></pre>