Wether code editor should be disabled.
Label shown above the editor.
The language of the code editor. By default, the language is set to 'javascript'.
Executed with an input value from user.
Wether code editor should be read only.
Value of the code editor.
<drayman-code-editor />
Code Editor powered by CodeMirror library.
Example of usage
export const component: DraymanComponent = async ({ forceUpdate }) => { let code = `console.log('Hello, World!')`; return () => { return ( <drayman-code-editor label="Amazing code" language="javascript" value={code} onValueChange={async ({ value }) => { code = value; await forceUpdate(); }} /> ); } }