Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions custom_components/reflex_monaco/monaco.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class MonacoComponent(rx.Component):
# The theme to use for the editor.
theme: rx.Var[str] = rx.color_mode_cond("light", "vs-dark")

# The options, refer to Monaco interface IStandaloneEditorConstructionOptions at
# https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html
options: rx.Var[dict]

# The line to jump to in the editor.
line: rx.Var[int] = rx.Var.create(1)

Expand Down