@madie/madie-editor
v1.0.3
Published
This is a single-spa Application responsible for the MADiE application's editor
Maintainers
Keywords
Readme
madie-editor
This is a single-spa Application responsible for the MADiE application's editor
Usage
import React, { useState } from "react";
import { MadieEditor } from "@madie/madie-editor";
const Usage = () => {
const [content, setContent] = useState("");
const handleChange = (nextValue) => {
setContent(nextValue);
};
return (
<div>
<MadieEditor value={content} onChange={handleChange} />
</div>
);
};Props
Common props you may want to include:
parseDebounceTime- debounce time to invoke parser in milliseconds (default 1500ms)onChange* - subscribe to change eventsvalue* - control the current value
* - denotes a required prop
