https://github.com/xpioneer/react-contenteditable
A Simple ContentEditable Component with React
https://github.com/xpioneer/react-contenteditable
contenteditable hooks react typescript
Last synced: about 2 months ago
JSON representation
A Simple ContentEditable Component with React
- Host: GitHub
- URL: https://github.com/xpioneer/react-contenteditable
- Owner: xpioneer
- Created: 2021-05-23T15:11:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T02:52:05.000Z (almost 5 years ago)
- Last Synced: 2025-09-21T05:32:40.591Z (9 months ago)
- Topics: contenteditable, hooks, react, typescript
- Language: TypeScript
- Homepage:
- Size: 82 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
### React-ContentEditable
A simple editable plugin with react, can fire keywords(props key: `delimiter`, default: `#`)
#### Installation
```
yarn add react-editable-tag
#or
npm i react-editable-tag
```
#### Usage
```js
import React, { useState } from 'react'
import { ContentEditable } from '../src/index'
function App() {
const [keyWords, setKeyWords] = useState()
const onKeyWord = () => {
const val = prompt('Please input')
if(val !== null) {
setKeyWords(val)
}
}
return
}
```
#### Features
* React Hooks
* TypeScript
* Antd Style