项目
在 GitHub 查看
2. Register the addon in
storybookjs/addon-designs
关于
一个可在插件面板中嵌入 Figma、网站或图像的 Storybook 插件。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文@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
- Adobe XD: storybook-addon-xd-designs
- Zeplin: storybook-zeplin
- Abstract: storybook-addons-abstract
探索相关项目
加载中…