Package Exports
- react-bootstrap-simple-editable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-bootstrap-simple-editable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-bootstrap-simple-editable
A simple editable plugin with simple validations
Install
npm install --save react-bootstrap-simple-editableUsage
import React, { useState } from 'react'
import SimpleEditable from 'react-bootstrap-simple-editable'
import 'react-bootstrap-simple-editable/dist/index.css'
const Example = () => {
const [myInput, setMyInput] = useState('example');
return (
<SimpleEditable
type="text"
name="myInput"
value={myInput}
onSave={(value) => {
setMyInput(value);
}}
/>
);
}DEMO
See demos here WIP... documentation
Project has just started...
It only supports input type=text and custom components, check examples above. Going to add support to more stuff later...
License
MIT © 8geonirt