🌜
🌞
@antv/x6-react-components

@antv/x6-react-components

v1.1.15

React components for building x6 editors

npm install @antv/x6-react-components

README

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.

General

License
MIT
Typescript Types
Built-in
Tree-shakeable
Yes

Popularity

GitHub Stargazers
3,840
Community Interest
3,213
Number of Forks
1,218

Maintenance

Commits
11/2110/220150
Last Commit
Open Issues
135
Closed Issues
1,401
Open Pull Requests
3
Closed Pull Requests
81

Versions

Versions Released
11/2110/2202
Latest Version Released
Nov 14, 2021
Current Tags
latest1.1.15
beta0.10.20-beta.1

Contributors

bubkoo
bubkoo
Commits: 1,895
NewByVector
NewByVector
Commits: 315
semantic-release-bot
semantic-release-bot
Commits: 309
afc163
afc163
Commits: 14
wtzeng1
wtzeng1
Commits: 12
OpportunityLiu
OpportunityLiu
Commits: 4
Eve-Sama
Eve-Sama
Commits: 4
zdc1111
zdc1111
Commits: 4
qianjujie
qianjujie
Commits: 3
yangling1996
yangling1996
Commits: 2
sscfaith
sscfaith
Commits: 2
lvhuiyang
lvhuiyang
Commits: 2
xrkffgg
xrkffgg
Commits: 2
daigang666
daigang666
Commits: 2
lyn-boyu
lyn-boyu
Commits: 2