1.2.7 • Published 3 years ago

@rafcin/editable v1.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@rafcin/editable

EditableText is used for inline renaming of some text. It appears as normal UI text but transforms into a text input field when the user clicks or focuses on it.

Installation

yarn add @rafcin/editable

# or

npm i @rafcin/editable

Import component

import { Editable, EditableInput, EditablePreview } from "@rafcin/react"

Usage

<Editable defaultValue="Take some fox">
  <EditablePreview />
  <EditableInput />
</Editable>