react-editable-and-draggable-text-2
v1.2.7
Published
This is a library that allows to have a text that is draggable and editable
Downloads
7
Readme
React Editable Text
This library is built as a complement to DNS Container. A library that allows you to add images and drag and scale content
Install
npm install --save react-editable-text
# or
yarn add react-editable-text
# peer dependencies (install these separately)
# "@material-ui/core": "^4.6.1"
# "clsx": "^1.0.4",
# "image-drag-and-scale": "^1.1.5-beta.0"
Usage
import React from "react";
import "./App.css";
import Text from "./Text/text";
function App() {
let texts = { id: "unique-1" };
const textRef = React.useRef();
return (
<div className="App">
<Text textData={texts} onUpdate={() => {}} ref={textRef} />
</div>
);
}
export default App;
Version Update
v1.1.3
First release. If you find issues, please post an issue on the github
License
MIT © lgdelacruz92