Skip to content

This is a single-spa Application responsible for the MADiE application's editor

License

Notifications You must be signed in to change notification settings

CeciliaLiu8/madie-editor

 
 

Repository files navigation

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

About

This is a single-spa Application responsible for the MADiE application's editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 82.9%
  • JavaScript 14.9%
  • Dockerfile 1.7%
  • Shell 0.5%