1.0.8 • Published 10 months ago

react-chakra-editable-label v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-chakra-editable-label

A library that allows you to switch between a text label and an input field. The library utlizes Chakara UI under the hood.

Table of Contents

Installation

$ npm install react-chakra-editable-label $ yarn add react-chakra-editable-label

Usage

The react-chakra-editable-label object requires two props:

  • text which is the initial text to display
  • onSave which is the function called when the is updated.

Example:

import React from 'react';

import { EditableLabel } from 'react-chakra-editable-label';

const App = () => {
    return (
            <EditableLabel
                text='World'
                onSave={value => {
                    console.log(value);
                }}
            />
    );
}
1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago