0.1.1 • Published 4 years ago

bubkoo-test v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

x6

React components for building x6 editors

Components

  • Icon
  • Dropdown
  • Menu
  • Menubar
  • Toolbar
  • ColorPicker

Installation

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

# yarn
$ yarn add @antv/x6-components

Usage

Import component and style:

import { Menu } from '@antv/x6-components/es/menu';
import '@antv/x6-components/es/menu/style';

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

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

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

{
  "plugins": [
    [
      "import", 
      {
        "libraryName": "@antv/x6-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.