A Component for making text editable with input like features
npm i react-text-content-editable
https://mpcv6.csb.app/
https://mpcv6.codesandbox.io/
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
tag="h1"
type='text'
maxLength='20'
onChange={onChange}
value={data}
/><Editable
tag="h1"
type='text'
maxLength='20'
onChange={onChange}
readOnly={true}
/>We would love some contributions! Check out this document to get started.