Skip to content
プロジェクト

概要

アドオンパネルにFigma、Webサイト、画像を埋め込めるStorybookアドオンです。

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
+1
15日間
+1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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@>=10.0.0
  • This addon should work well with any framework. If you find that the addon does not work, please open an issue.

Version compatibility

Addon designs version Storybook version
^11.0.0 ^10.0.0
^10.0.0 ^9.0.0
^9.0.0 ^9.0.0
^8.0.0 ^8.0.0
^7.0.0 ^7.0.0

Getting started

1. Install

npm install -D @storybook/addon-designs

yarn add -D @storybook/addon-designs

pnpm add -D @storybook/addon-designs

2. Register the addon in main.js

export default {
  addons: ["@storybook/addon-designs"],
};

3. Add it to story!

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

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

Similar projects

関連プロジェクトを探す

読み込み中…