# inline-edit-input-value

> This is a inline edit input value module

Latest version **1.0.2** (published 2018-10-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install inline-edit-input-value
pnpm add inline-edit-input-value
yarn add inline-edit-input-value
bun add inline-edit-input-value
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-10-12 |
| First published | 2018-10-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ranjeet Kumar |
| Maintainers | webjustify |
| Keywords | react, reactjs, inline, edit, input, editing, text, lebels, lebel, form, forms |

## Links

- npm: https://www.npmjs.com/package/inline-edit-input-value
- npm.io page: https://npm.io/package/inline-edit-input-value

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^16.5.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.5.2
- [react-scripts](https://npm.io/package/react-scripts.md) 2.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-10-12
- 1.0.1 — 2018-10-12
- 1.0.0 — 2018-10-12

## README

# A beautiful inline editing input field component
In this NPM package with you can easily edit your input field with lebel. Users can easily click on lebels and edit text inline.

# Installation
`npm install --save inline-edit-input-value`

# Component props
_* Required_

| Prop | Type   | Description
| -----| -------| -------- |
| text |  | Text to be displayed on both the label and initially in the editor |
| isEditing | bool | Flags whether the label should be in editor mode
| labelClassName | string | Class name for the text styling
| labelFontSize | string | Font size for the text
| labelFontWeight | string | Font weight for the text
| inputMaxLength | number | Max length for the input in editing mode
| inputPlaceHolder | string | Placeholder for the input in editing mode
| inputWidth | string | Width of the input in editing mode
| inputHeight | string | Height of the input in editing mode
| inputFontSize | string | Font size for the input in editing mode
| inputFontWeight | string | Font weight for the input in editing mode
| inputClassName | string | Class name for the input editor's styling
| inputBorderWidth | string | Border width for the input in editing mode
| onFocus | function | Callback for text focusing. Parameter(s): `text`
| onFocusOut | function | Callback for focus leaving editor. Parameter(s): `text`


#Example

```js
import React from 'react';
import InlineEditInput from './InlineEditInput'

class App extends React.Component {

  handleFocus = (text) => {
      console.log('Focused with value: ' + text.value);
      console.log('Focused with name: ' + text.name);
  }

  handleFocusOut = (text) => {
      console.log('Left editor with value: ' + text.value);
      console.log('Left editor with name: ' + text.name);
  }

  render() {
    return (
      <div className="App">
        <InlineEditInput
          text='Ranjeet Kumar!'
          name='full-name'
          labelClassName='myLabelClass'
          inputClassName='myInputClass'
          inputWidth='200px'
          inputHeight='25px'
          inputMaxLength='50'
          labelFontWeight='bold'
          inputFontWeight='bold'
          onFocus={this.handleFocus}
          onFocusOut={this.handleFocusOut}
        />
      </div>
    );
  }
}

export default App;

```

---
_Source: https://npm.io/package/inline-edit-input-value · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
