perfect-edit
v0.1.0
Published
A React plugin for perfect text editing.
Readme
PerfectEdit
A React plugin for perfect text editing.
Installation
npm install perfect-edit
# or
yarn add perfect-editUsage
import { PerfectEdit } from 'perfect-edit';
function App() {
const handleChange = (value) => {
console.log('New value:', value);
};
return (
<PerfectEdit
initialValue="Initial text"
onChange={handleChange}
className="custom-class"
/>
);
}Props
initialValue: Initial text value (optional)onChange: Callback function called when text changes (optional)className: CSS class name for styling (optional)
Development
- Install dependencies:
npm install - Run tests:
npm test - Build:
npm run build
License
MIT
