A Storybook addon that gives an example for importing a component

View on Github

Bookshop Addon HTML

This addon for Bookshop adds a tab that displays some import code for each story. It is forked from whitespace-se/storybook-addon-html

Animated preview

Getting Started

With NPM:

npm i --save-dev bookshop-addon-import-tab

With Yarn:

yarn add -D bookshop-addon-import-tab

Register addon

// .storybook/main.js

module.exports = {
  // ...
  addons: [
    // ...