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
CSS Variables
Name
Description
--editor-height
Sets the height of the editor. (default: 300px)
--editor-width
Sets the width of the editor. (default: 100%)