react-simple-inplace-edit
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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 input
  • onSubmit: function function to call when the new text is submitted
  • validate: function boolean function for customized validating
  • titleClassName: 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

Package Sidebar

Install

npm i react-simple-inplace-edit

Weekly Downloads

5

Version

0.2.0

License

MIT

Unpacked Size

11.6 kB

Total Files

5

Last publish

Collaborators

  • urnotjessie