1.0.4 • Published 3 years ago

react-editable-tag v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

import React, { useState } from 'react'
import { ContentEditable } from '../src/index'

function App() {
  const [keyWords, setKeyWords] = useState<string>()

  const onKeyWord = () => {
    const val = prompt('Please input')
    if(val !== null) {
      setKeyWords(val)
    }
  }


  return <div>
    <ContentEditable
      keyWords={keyWords}
      onKeyWord={onKeyWord}/>
  </div>
}

Features

  • React Hooks
  • TypeScript
  • Antd Style
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago