@sqlrooms/monaco-editor / JsonMonacoEditorProps
Interface: JsonMonacoEditorProps
Extends
Omit<MonacoEditorProps,"language"|"value">
Properties
schema?
optionalschema?:object
The JSON schema to validate against
value?
optionalvalue?:string|object
The JSON value to edit
onMount?
optionalonMount?:OnMount
Callback when the editor is mounted
Inherited from
onChange?
optionalonChange?:OnChange
Callback when the editor content changes
Inherited from
className?
optionalclassName?:string
CSS class name for the editor container
Default
ts
''Inherited from
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'Inherited from
readOnly?
optionalreadOnly?:boolean
Whether the editor is read-only
Default
ts
falseInherited from
options?
optionaloptions?:IStandaloneEditorConstructionOptions
Additional options for the editor
