@sqlrooms/monaco-editor / MonacoEditorProps
Interface: MonacoEditorProps
Extends
Omit<EditorProps,"onMount">
Properties
onMount?
optionalonMount?:OnMount
Callback when the editor is mounted
onChange?
optionalonChange?:OnChange
Callback when the editor content changes
Overrides
Omit.onChange
className?
optionalclassName?:string
CSS class name for the editor container
Default
ts
''Overrides
Omit.className
language?
optionallanguage?:string
The language of the editor
Default
ts
'javascript'Overrides
Omit.language
theme?
optionaltheme?:Theme
The theme of the editor ('dark' | 'light' | 'system') Can be explicitly set or will automatically use the app theme if not provided
Default
ts
'dark'Overrides
Omit.theme
value?
optionalvalue?:string
The value of the editor
Overrides
Omit.value
readOnly?
optionalreadOnly?:boolean
Whether the editor is read-only
Default
ts
falseoptions?
optionaloptions?:IStandaloneEditorConstructionOptions
Additional options for the editor
Overrides
Omit.options
