Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neo4j-cypher/react-codemirror

Package Overview
Dependencies
Maintainers
2
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-cypher/react-codemirror

React CodeMirror 6 Cypher editor

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.4K
decreased by-51.41%
Maintainers
2
Weekly downloads
 
Created
Source

@neo4j-cypher/react-codemirror

This package exports a React component that provides a cypher editor using codemirror 6.

You can use this package like the following:

import React from 'react';
import CypherEditor from '@neo4j-cypher/react-codemirror';

const editorProps = {
  onValueChanged: value => {}, // optional
  onFocusChanged: focused => {}, // optional
  onScrollChanged: scrollInfo => {}, // optional
  onPositionChanged: ({ line, column, position }) => {}, // optional
  initialOptions: {
    theme: 'light', // optional, defaults to light
    extensions: [ /* override extensions  */ ] // optional, defaults to a sensible list of extensions.
  },
  initialSchema: { /* ... */ }, // optional, see example in demos
  initialValue: 'this is the text to show in the editor',
  initialPosition: { row: 2, column: 3},  // optional, rows are 1 based, columns are 0 based
  classNames: [], // optional, array of classnames to add to the root dom element.
  theme: 'light' // optional, should be light or dark, defaults to light
};

const MyReactComponent = () => {
  return (
    <CypherEditor {...editorProps} />
  );
}

Keywords

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc