# editable-text-label

> ```bash npm install --save editable-text-label # or yarn add editable-text-label ```

Latest version **0.1.2** (published 2019-02-11) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install editable-text-label
pnpm add editable-text-label
yarn add editable-text-label
bun add editable-text-label
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-02-11 |
| First published | 2019-02-11 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 176 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | iusenko |
| Keywords | react, reactjs, inline, edit, editor, editing |

## Links

- npm: https://www.npmjs.com/package/editable-text-label
- Repository: https://github.com/eugene-usenko/editable-text-label
- npm.io page: https://npm.io/package/editable-text-label

## Dependencies (3)

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

## 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

- 0.1.2 (latest) — 2019-02-11
- 0.1.1 — 2019-02-11
- 0.1.0 — 2019-02-11

## README

`<EditableLabel>` is a small React component which provides _inline editing_ by click on it's text label.

![Showcase](doc/demo.gif)

# Installation

```bash
npm install --save editable-text-label
# or
yarn add editable-text-label
```

# Example

```js
import React from 'react'
import { EditableLabel } from 'editable-text-label'

export const example = () => {
    const value = 'Default value'
    const onChange = v =>
        console.log('Entered text: ', v)

    return <EditableLabel value={value}
        onChange={onChange}
        inputSize={5} />
}
```

> You can run a demo locally by clonning the project and running `yarn install && yarn start` command.

---
_Source: https://npm.io/package/editable-text-label · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
