@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
12 lines (11 loc) • 491 B
TypeScript
import * as monaco from 'monaco-editor';
export interface WodWikiProps {
/** What background color to use */
code?: string;
/** Optional value change handler */
onValueChange?: (value: any, editor: any) => void;
/** Optional cursor position handler */
onCursorMoved?: (position: monaco.Position) => void;
}
/** Primary UI component for user interaction */
export declare const createWodWiki: ({ code, onValueChange, onCursorMoved, }: WodWikiProps) => HTMLDivElement;