All Projects → chungchiehlun → react-click-to-edit

chungchiehlun / react-click-to-edit

Licence: MIT license
Make any text editable.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Makefile
30231 projects

Projects that are alternatives of or similar to react-click-to-edit

react-edit-text
Simple 'click to edit' editable text component for React
Stars: ✭ 28 (+75%)
Mutual labels:  simple, editable
Customizable-Crypto-Currency-Dashboard-with-Chart
📺 A Dashboard with the price movements of the selected Cryptocurrencies 💹
Stars: ✭ 79 (+393.75%)
Mutual labels:  simple, editable
Mu
The μ css framework — a 1 ko css file.
Stars: ✭ 202 (+1162.5%)
Mutual labels:  simple
Easythread
一款安全、轻巧、简单的线程池管理器
Stars: ✭ 250 (+1462.5%)
Mutual labels:  simple
Sol2
Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
Stars: ✭ 2,791 (+17343.75%)
Mutual labels:  simple
Vue Impression
A Vue.js 2.0 UI elements for mobile.
Stars: ✭ 205 (+1181.25%)
Mutual labels:  simple
Riot
Simple and elegant component-based UI library
Stars: ✭ 14,596 (+91125%)
Mutual labels:  simple
Gallery shell
📷 Bash Script to generate static responsive image web galleries.
Stars: ✭ 198 (+1137.5%)
Mutual labels:  simple
hugoblog
Hugoblog is responsive, simple, and clean that would fit for your personal blog based on Hugo Theme Static Site Generator (SSG)
Stars: ✭ 48 (+200%)
Mutual labels:  simple
Simplenetwork
simple TCP server / client C++ linux socket
Stars: ✭ 225 (+1306.25%)
Mutual labels:  simple
Vue Class Store
Universal Vue stores you write once and use anywhere
Stars: ✭ 243 (+1418.75%)
Mutual labels:  simple
Simple Dash
A simple, fully responsive Dashboard to forward to the services of your choice!
Stars: ✭ 222 (+1287.5%)
Mutual labels:  simple
Htmr
Simple and lightweight (< 2kB) HTML string to React element conversion library
Stars: ✭ 214 (+1237.5%)
Mutual labels:  simple
Lazyblorg
Blogging with Org-mode for very lazy people
Stars: ✭ 226 (+1312.5%)
Mutual labels:  simple
Sublimenotebook
📝 Make Sublime Text your favorite note taking/journal application
Stars: ✭ 203 (+1168.75%)
Mutual labels:  simple
ngx-ion-simple-mask
Input mask for Angular/Ionic
Stars: ✭ 21 (+31.25%)
Mutual labels:  simple
Route
Simple isomorphic router
Stars: ✭ 199 (+1143.75%)
Mutual labels:  simple
Nakedtensor
Bare bone examples of machine learning in TensorFlow
Stars: ✭ 2,443 (+15168.75%)
Mutual labels:  simple
Ataraxia
Simple and lightweight source-based multi-platform Linux distribution with musl libc.
Stars: ✭ 226 (+1312.5%)
Mutual labels:  simple
spartana
A grafana clone that does the bare minimum. SRE's dream dashboarding solution
Stars: ✭ 37 (+131.25%)
Mutual labels:  simple

React-Click-To-Edit

Add it to your component including text such as label, article and table and make the text editable.

Installation

$ npm install react-click-to-edit
or
$ yarn add react-click-to-edit

Usage

// ESM
import CTE from "react-click-to-edit";
or;
// Commonjs
const CTE = require("react-click-to-edit");
props type usage
wrapperClass string css class applied to the wrapper (or container) consists of input and text
inputClass string css class applied to the input
textClass string css class applied to the text
initialValue string initial value of text
startEditing () => {} callback invoked when entering edit mode by clicking the text
endEditing (value) => {} callback invoked when leaving edit mode by clicking ENTER or ESC

See elaborate examples

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].