New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@xrhcc-flow/components

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xrhcc-flow/components

React components for building x6 editors

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

xrhcc-components

React components for building xrhcc-flow editors

Components

  • Menu
  • Dropdown
  • ContextMenu
  • Menubar
  • Toolbar
  • SplitBox
  • ScrollBox
  • AutoScrollBox
  • ColorPicker

Installation

# npm
$ npm install @xrhcc-flow/components --save

# yarn
$ yarn add @xrhcc-flow/components

Usage

Import component and style:

import { CodeMirror } from '@xrhcc-flow/components/es/menu'
// less
import '@xrhcc-flow/components/es/menu/style'
// or css
import '@xrhcc-flow/components/es/menu/style/index.css'

We strongly recommend using babel-plugin-import, which can convert the following code to the '@xrhcc-flow/components/es/xxx' way:

import { CodeMirror } from '@xrhcc-flow/components'

And this plugin will also load corresponding styles too. Via .babelrc or babel-loader:

{
  "plugins": [
    [
      "import",
      {
        "libraryName": "@xrhcc-flow/components",
        "libraryDirectory": "es", // es or lib
        "style": true,
        "transformToDefaultImport": true
      }
    ]
  ]
}

Keywords

component

FAQs

Package last updated on 28 Dec 2023

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