@asurraa/sura-ui-rich-text-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@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

Props Description Type
value value for input into the components string
default value default value input into the component for initial value string
onChange callback 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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.0.7

License

none

Unpacked Size

23.2 kB

Total Files

12

Last publish

Collaborators

  • vichea
  • themkimhong
  • lyhourchhen
  • duongkimseng