Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 557 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 557 Bytes

Addons API

Usage

const AddonsApi = require('modulor-storybook/addons');

//define manager plugin
customElements.define('your-custom-tag', class extends HTMLElement {
  connectedCallback(){
    //do the job
  }
});
AddonsApi.addPanel('<panel name>', () => `<your-custom-tag></your-custom-tag>`);

//define preview plugin
customElements.define('your-custom-tag', class extends HTMLElement {
  connectedCallback(){
    //do the job
  }
});

Addons API

check implementation

Examples

README plugin