Skip to main content

Module widget

Module widget 

Source
Expand description

Drop-in interactive Monaco-class <CodeEditorWidget> component, reactive CodeEditorHandle, and use_code_editor hook.

Renders a virtualized, fold-aware viewport with line numbers, clickable fold chevrons, diagnostic gutter indicators & inline squiggles, Find & Replace overlay bar, matching bracket highlights, multi-cursor carets & selections, Canvas2D minimap with scrub-to-scroll, Monaco status bar, and full --strata-editor-* CSS-variable theming.

Re-exports§

pub use CodeEditorWidget as CodeEditorView;
pub use CodeEditorWidget as CodeEditorView;

Structs§

CodeEditorHandle
Reactive shared handle to a CodeEditor instance.
CodeEditorOptions
Visual and behavioral configuration for interactive <CodeEditorWidget> rendering.
CodeEditorWidget
CodeEditorWidgetBuilder

Functions§

CodeEditorWidget
Drop-in Monaco-class interactive <CodeEditorWidget> Strata component.
render_interactive_editor
Builds the full interactive Monaco-class DOM blueprint (with live event listeners, virtualized fold-aware rows, Find & Replace overlay, Canvas2D minimap, and status bar).
use_code_editor
Reactive Strata hook returning a persistent CodeEditorHandle across component re-renders.