Themes

Editor/Components/es-editor
es-editor

Monaco editor wrapped in a web component. Handles re-layout on container resize

Props

Name
Description
Type
Default
editorRef

An optional callback for getting a reference to the editor, for external control.

((editor: IStandaloneCodeEditor) => void)
or
undefined
options

Editor options. see monaco docs for details.

IStandaloneEditorConstructionOptions
{}

CSS Variables

Name
Description
--editor-height

Sets the height of the editor. (default: 300px)

--editor-width

Sets the width of the editor. (default: 100%)