@wandelbots/wandelbots-js-react-components
Version:
React UI toolkit for building applications on top of the Wandelbots platform
16 lines • 838 B
TypeScript
import type { Monaco } from "@monaco-editor/react";
import type { editor } from "monaco-editor";
type WandelscriptEditorProps = {
/** The current Wandelscript content of the code editor (controlled component) */
code?: string;
/** What to do when the user edits the code */
onChange?: (code: string | undefined, ev: editor.IModelContentChangedEvent) => void;
/** Options for monaco editor */
monacoOptions?: editor.IEditorOptions;
/** Callback to further configure monaco on startup if needed */
monacoSetup?: (monaco: Monaco) => void;
};
/** A Monaco (VSCode-style) embedded code editor with Wandelscript syntax highlighting */
export declare const WandelscriptEditor: (props: WandelscriptEditorProps) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=WandelscriptEditor.d.ts.map