# react-jsonpath-editor **Repository Path**: capsulehappy/react-jsonpath-editor ## Basic Information - **Project Name**: react-jsonpath-editor - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-17 - **Last Updated**: 2021-03-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-jsonpath-editor [![Travis][build-badge]][build] [![npm package][npm-badge]][npm] [![Coveralls][coveralls-badge]][coveralls] ![alt text](docs/react-jsonpath-editor.png "React json path editor") ## Usage install the dependency using `npm` or `yarn` ``` npm i --save react-jsonpath-editor ``` ``` yarn add react-jsonpath-editor ``` ```javascript import React, {Component} from 'react' import JsonPathEditor from 'react-jsonpath-editor'; class App extends Component { render() { return
; } } ``` ## Properties | Props | Type | Required | Description | |-------------------|:----------------------:|:---------:|-------------------------------------------------------| | inputProps | `object` | `false` | Properties passed down to the input | | value | `string` | `false` | input default value | | json | `object` | `false` | json to test the json path and provide autocompletion | | onChange | `function` | `false` | callback called when jsonPath changed | | editorPosition | `object` | `false` | {x,y} overrides the position of the editor | | previewOrientation| `right` or `left` | `false` | Defines orientation of preview. default to right | [build-badge]: https://img.shields.io/travis/JeanBaptisteWATENBERG/react-jsonpath-editor/master.png?style=flat-square [build]: https://travis-ci.org/JeanBaptisteWATENBERG/react-jsonpath-editor [npm-badge]: https://img.shields.io/npm/v/react-jsonpath-editor.png?style=flat-square [npm]: https://www.npmjs.com/package/react-jsonpath-editor [coveralls-badge]: https://img.shields.io/coveralls/JeanBaptisteWATENBERG/react-jsonpath-editor/master.png?style=flat-square [coveralls]: https://coveralls.io/github/JeanBaptisteWATENBERG/react-jsonpath-editor