UNPKG

storybook-addon-playground

Version:

A playground to enable consumers learn how to use the component library or to reproduce bugs

19 lines 705 B
import React from "react"; import { Extension, ReactCodeMirrorRef, BasicSetupOptions } from "@uiw/react-codemirror"; import "./Editor.module.css"; import { EditorInitialState, EditorTheme } from "@/types"; interface EditorProps { code: string; onChange: (newVal: string) => void; placeholder?: string; loading?: boolean; theme: EditorTheme; style?: React.CSSProperties; extensions?: Extension[]; setup?: BasicSetupOptions; initialState?: EditorInitialState; } type EditorComponent = React.ForwardRefExoticComponent<EditorProps & React.RefAttributes<ReactCodeMirrorRef>>; declare const Editor: EditorComponent; export default Editor; //# sourceMappingURL=Editor.d.ts.map