3.0.2 • Published 4 years ago

react-text-content-editable v3.0.2

Weekly downloads
33
License
MIT
Repository
github
Last release
4 years ago

A Component for making text editable with input like features

Installation

npm i react-text-content-editable

Demo

https://mpcv6.csb.app/ https://mpcv6.codesandbox.io/

Usage

import React, { useState } from 'react'
import Editable from 'react-text-content-editable'

const App = () => {
  const [text, setText] = useState('')

  const onChange = (value) => {
    setText(value)
  }

  return (
        <Editable 
            tag='p'
            type='text'
            maxLength='20'
            onChange={onChange}
            value={text}
         />
  )
}

Editable Text

<Editable
    tag="h1"
    type='text'
    maxLength='20'
    onChange={onChange}
    value={data}
/>

Editable Text Read only

<Editable
    tag="h1"
    type='text'
    maxLength='20'
    onChange={onChange}
    readOnly={true}
/>

Contributing

We would love some contributions! Check out this document to get started.

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago