Text Editor in React built on top
draft-js
.
- use with input form
yarn add @tenbox-dev/sura-ui-rich-text-editor
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 |
import { Fragment } from "react";
import { AsurRaaRichTextEditor } from "@tenbox-dev/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;