0.2.0 • Published 5 years ago
react-simple-inplace-edit v0.2.0
react-simple-inplace-edit
A react component that enables in-place editing for text.
Installation
npm install react-simple-inplace-edit --save-dev
Required props
originalValue
:string
initial text
Optional props
errorMessage
:string
error message for invalid inputonSubmit
:function
function to call when the new text is submittedvalidate
:function
boolean function for customized validatingtitleClassName
:string
CSS class name for<h1>
formClassName
:string
CSS class name for<form>
inputClassName
:string
CSS class name for<input>
errorMessageClassName
:string
CSS class name for error message