Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 707 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 707 Bytes

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 events
  • value* - control the current value

* - denotes a required prop