@nju33/react-editable-input
v0.1.14
Published
[![@nju33/react-editable-input](https://img.shields.io/npm/v/@nju33/react-editable-input.svg)](https://www.npmjs.com/package/@nju33/react-editable-input) [![style: styled-components](https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-ora
Downloads
2
Readme
react-editable-input
Install
yarn add @nju33/react-editable-input
Usage
e.g.
import {EditableInput, EditableInputType} from '@nju33/react-masonry';
// ...
render() {
return (
<EditableInput
type={EditableInputType.Text}
value={this.state.value}
onCompleteBefore={done => {
// ... something processing
// you'd have errors. you should return `done` that have error message.
// done('error');
// If you've no error, which should return with success message like
done(null, 'save');
}}
>
</EditableInput>
)
}
Type
Text
wipPassword
wipNumber
wipEmail
wipTextarea
wip