sad
storybook-addon-designs
npm i storybook-addon-designs
sad

storybook-addon-designs

A Storybook addon that embeds Figma, websites, or images in the addon panel.

by Shota FUJI

6.3.1 (see all)License:MITTypeScript:Built-In
npm i storybook-addon-designs
Readme
logo

npm version Monthly download GitHub license code style: prettier


storybook-addon-designs

A Storybook addon that embed Figma or websites in the addon panel for better design-development workflow.

Requirements

  • Storybook@>=6.4.0

This addon should work well with any framework: If you find the case the addon not works, please open an issue.

Getting started

1. Install

npm install --save-dev storybook-addon-designs
# yarn add -D storybook-addon-designs

To install v7 beta, use below command instead.

npm install --save-dev storybook-addon-designs@beta
# yarn add -D storybook-addon-designs@beta

2. Register the addon in main.js

module.exports = {
  addons: ["storybook-addon-designs"],
};

3. Add it to story!

export default {
  title: "My stories",
  component: Button,
};

export const myStory = () => <Button>Hello, World!</Button>;

myStory.parameters = {
  design: {
    type: "figma",
    url: "https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File",
  },
};

Similar projects

VersionTagPublished
6.3.1
latest
8mos ago
7.0.0-beta.2
beta
2mos ago
7.0.0-alpha.3
alpha
3mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate