1.0.7 • Published 2 years ago

@asurraa/sura-ui-rich-text-editor v1.0.7

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@asurraa/sura-ui-rich-text-editor

Text Editor in React built on top draft-js.

Use case

  • use with input form

Installation

npm package

yarn add @asurraa/sura-ui-rich-text-editor

Property

PropsDescriptionType
valuevalue for input into the componentsstring
default valuedefault value input into the component for initial valuestring
onChangecallback data when components change(e: string)=> void

Example

import { Fragment } from "react";
import { AsurRaaRichTextEditor } from "@asurraa/sura-ui-rich-text-editor";
const TestPage = () => {
  return (
    <Fragment>
      <div
        style={{
          display: "flex",
          justifyContent: "center",
          alignItems: "center",
          minHeight: "100vh",
        }}
      >
        <AsurRaaRichTextEditor />
      </div>
    </Fragment>
  );
};

export default TestPage;

Dependency

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago