Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-edit-text

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-edit-text

Simple editable text component for React

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Edit Text

travis npm

This is an editable text component for React. Simply click on the text to edit!

Made with ❤️ by Brian Min

Demo

Feel free to check out the live demo

Install

npm install react-edit-text --save

Usage

import React, { Component } from 'react'

import EditText from 'react-edit-text'
import 'react-edit-text/dist/index.css'

class Example extends Component {
  render() {
    return <EditText name="inputName"></EditText>
  }
}

Props

PropTypeRequiredDefaultNote
idstringNoHTML id attribute
typestringNotextHTML input type
namestringNo''HTML name attribute
classNamestringNoHTML class attribute
valuestringNo''Value of the input and text content
placeholderstringNo''Placeholder value
onSavefunctionNoCallback function triggered when input is saved
inlineboolNofalseSets inline display
styleobjectNoSets CSS style of input and text component

Contributing

Contributions are very much appreciated and welcome. Please refer to the contributing guidelines for more details.

License

MIT © Brian Min

Keywords

FAQs

Package last updated on 28 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc