material-jsoneditor
v2.0.0
Published
Simple JSON Editor component built for use in Material UI projects
Downloads
597
Readme
JSON Editor for Material UI 5.4
A simple editor library for visually editing JSON objects built using Material UI.
How to use
- Add as a dependency
npm i material-jsoneditor
- Import the component into your project
import { Editor } from "material-jsoneditor";
- Add the component to your project
const myComponent = () => {
const [myObj, setObj] = useState({});
return <Editor value={myObj} onChange={setObj} />;
};
Demo
Visit https://andrewlowndes.github.io/material-jsoneditor/dist/ to use the pre-built editor online. Copy your JSON into the right panel and edit on the left.
Roadmap
- [x] Change types at any depth (number, boolean, string, array, object and null)
- [x] UI Editors for values of all types
- [x] Triggers for all JSON object changes
- [x] Designed for mobile first
- [x] Breadcrumb dropdowns for quick property navigation
- [ ] Drag and drop array editing
- [ ] Tabular view for arrays of objects
- [ ] Easier duplication / mass deletion
- [ ] Inline editing for objects / array primitives
- [ ] Extra UI Editors for Date / Time / DateTime / Colour picker
Development
Checkout the repo, install dependencies via npm i
and start the development server via npm start
.