UNPKG

react-x-editable

Version:
59 lines (42 loc) 1.44 kB
[![NPM](https://img.shields.io/npm/v/react-x-editable.svg)](https://www.npmjs.com/package/react-x-editable) ![License](https://img.shields.io/npm/l/react-x-editable.svg) [![NPM](https://nodei.co/npm/react-x-editable.png)](https://nodei.co/npm/react-x-editable/) # react-x-editable X-editable for react using [react-bootstrap](https://react-bootstrap.github.io/). ## Quick Overview react-x-editable allows text in place edit or click to edit functionality. ## Features : * Support both `inline` and `popup` text edit mode (Form/Popover). * Build in supported inputs are `Text`, `Textarea`, `Select`,`Checklist (check box list)` * Supported `Customizable` inputs where user can create own user defined inputs easily. ## Getting started ```sh npm install react-x-editable Or git clone https://github.com/ni3galave/react-x-editable.git cd react-x-editable/ npm install npm start ``` Then open [http://localhost:8080/](http://localhost:8080/) to see demo examples. ## [Live Demo](https://react-x-editable.stackblitz.io/) | [Documentation](https://doc-react-x-editable.stackblitz.io) ## Quick Usage : Simple Text field example with popover edit mode. ```sh import Editable from 'react-x-editable'; .. ... render(){ return ( <Editable name="username" dataType="text" mode="popup" title="Please enter username" /> ); } .... ... ``` ## License MIT.