react-inline-edit-input

1.0.14 • Public • Published

React Inline Edit

Usage

  <InlineEdit
    value={fish.name}
    tag="p"
    type="text"
    saveLabel="Gravar"
    cancelLabel="Cancelar"
    onSave={value => props.updateFish(fish.id, { name: value })}
  />

Properties

Name Type Default Description
updateOnNewProps boolean false Props will only be updated if this is set to true
format function null Formats the value according to the function supplied
value string '' initial input value
tag string 'span'
type string 'text'
onSave string null
updateOnNewProps string false
saveColor string 'blue'
saveLabel string 'Save'
cancelColor string 'red'
cancelLabel string 'Cancel'
minDate string ''
maxDate string ''

Readme

Keywords

Package Sidebar

Install

npm i react-inline-edit-input

Weekly Downloads

0

Version

1.0.14

License

MIT

Unpacked Size

28.3 kB

Total Files

7

Last publish

Collaborators

  • adalbertoteixeira