@uwu/monaco-solid
v1.4.0
Published
Monaco as an easy to use solid component
Downloads
13
Keywords
Readme
Solid simple-monaco
Please read the main readme here.
import { createSignal } from "solid-js";
import Monaco from "@uwu/monaco-solid";
export default () => {
const [val, setVal] = createSignal("");
return (
<>
<Monaco
value={val()} // required
valOut={setVal}
lang="javascript" // required
theme="Monokai"
readonly={false}
height="30rem"
width="20rem"
otherCfg={{}}
/>
<pre>
<code>{val()}</code>
</pre>
</>
);
};