@antv/x6-react-components
React components for building x6 editors
Last updated 7 days ago by bubkoo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @antv/x6-react-components 
SYNC missed versions from official npm registry.

x6-react-components

React components for building x6 editors

MIT License Language

NPM Package NPM Downloads NPM Dependencies

Components

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

Installation

# npm
$ npm install @antv/x6-react-components --save

# yarn
$ yarn add @antv/x6-react-components

Usage

Import component and style:

import { Menu } from '@antv/x6-react-components/es/menu'
// less
import '@antv/x6-react-components/es/menu/style'
// or css
import '@antv/x6-react-components/es/menu/style/index.css'

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

import { Menu } from '@antv/x6-react-components'

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

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

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Current Tags

  • 0.10.20-beta.1                                ...           beta (2 months ago)
  • 1.1.1                                ...           latest (7 days ago)

12 Versions

  • 1.1.1                                ...           7 days ago
  • 1.1.0                                ...           14 days ago
  • 1.0.4                                ...           a month ago
  • 1.0.3                                ...           a month ago
  • 1.0.2                                ...           a month ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
  • 0.10.20                                ...           2 months ago
  • 0.10.20-beta.1                                ...           2 months ago
  • 0.10.19                                ...           3 months ago
  • 0.10.18                                ...           3 months ago
  • 0.10.15                                ...           3 months ago

Copyright 2014 - 2017 © taobao.org |