Codux Help Center
Browse our articles to find the answers you need
Consuming Your NPM Packages Through the Add Elements Panel
If you've created and published your own component library, you can easily configure Codux so that other project users can consume it visually through the Add Elements panel using the
addPanel/assets
key.addPanel
- Description: Enables scoped NPM package of your own libraries to be consumed through the Add Elements panel.
- Type: Object {}
- Properties:
assets
(Array<string>)
How to add to codux.config.json
Property: assets
The
assets
property is an array of strings where each string is the scoped NPM package of your library. Use the addPanel/assets
key in the configuration file like this, replacing the assets string with the scoped NPM package of your library:1 2 3 4 5 6 7
{ … "addPanel": { "assets": ["@myorg/mypackage"] }, … }
Was this article helpful?