@antv/x6-components
    TypeScript icon, indicating that this package has built-in type declarations

    0.10.7 • Public • Published

    x6-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-components --save
     
    # yarn 
    $ yarn add @antv/x6-components

    Usage

    Import component and style:

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

    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.

    Install

    npm i @antv/x6-components

    DownloadsWeekly Downloads

    43

    Version

    0.10.7

    License

    MIT

    Unpacked Size

    549 kB

    Total Files

    405

    Last publish

    Collaborators

    • zeyuwang
    • yanxiong
    • susiwen8
    • freestyle21
    • soundquiet
    • elaine.q.10
    • sturuby
    • lviser
    • sakuya223
    • serializedowen
    • xdzhao
    • yangzhanmei
    • wjgogogo
    • leungwensen
    • dori
    • iaaron
    • yard
    • simaq
    • dxq613
    • intchous
    • susan_ann
    • jinke.li
    • lzxue
    • army8735
    • atool
    • baizn
    • dengfuping
    • neoddish
    • jeffy2012
    • zqlu
    • afc163
    • pomelo-nwu
    • kopiluwaky
    • ccnuzindex
    • panyuqi
    • bubkoo
    • zengyue
    • kasmine
    • boyu.zlj
    • l1ud0ngq1
    • newbyvector
    • winniexing
    • chenluli
    • kn9117
    • xdddst
    • semious2020
    • esora
    • nadia_liu
    • bbsqq
    • mxz96102
    • openwayne
    • pearmini
    • pddpd
    • yiqianyao
    • zhanba
    • cxxxxxn