1.0.0 • Published 1 year ago
@tenbox-dev/sura-ui-rich-text-editor v1.0.0
@tenbox-dev/sura-ui-rich-text-editor
Text Editor in React built on top
draft-js.
Use case
- use with input form
Installation
yarn add @tenbox-dev/sura-ui-rich-text-editorProperty
| 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 "@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;Dependency
1.0.0
1 year ago