Skip to content

rune-langium / visual-editor/src / ExpressionEditorSlotProps

Interface: ExpressionEditorSlotProps

Defined in: packages/visual-editor/src/types.ts:212

Props provided to the expression editor render-prop slot.

packages/visual-editor is editor-agnostic — the host app provides the actual editor implementation (e.g. CodeMirror, Monaco) via a renderExpressionEditor prop on FunctionForm.

Extended by

Properties

PropertyTypeDescriptionDefined in
error?string | nullValidation error message (null when valid).packages/visual-editor/src/types.ts:220
expressionAst?unknownRaw AST expression object — enables direct tree conversion without reparsing text.packages/visual-editor/src/types.ts:224
onBlur() => voidCalled when the editor loses focus — triggers validation & commit.packages/visual-editor/src/types.ts:218
onChange(value) => voidCalled on every keystroke / change.packages/visual-editor/src/types.ts:216
placeholder?stringPlaceholder text shown when the editor is empty.packages/visual-editor/src/types.ts:222
valuestringCurrent expression text.packages/visual-editor/src/types.ts:214

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.