加入直播:美国东部时间周四上午11点,Storybook 9 发布及问答

Gatsby

用于加载使用 Gatsby 构建的 Storybook 插件

在 Github 上查看

storybook-addon-gatsby

npm version npm downloads Github Actions CI Codecov Conventional Commits License

Storybook 插件,用于加载使用 Gatsby 构建的 Story。

注意:此插件要求 Storybook 配置为 Webpack 5。请参阅官方的 Storybook 与 Webpack 5 指南 以获取说明。

安装

npm install --save-dev storybook-addon-gatsby

然后将插件包含到您的 Storybook 配置中,位于 .storybook/main.js

// .storybook/main.js

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

许可

   Copyright 2013-2021 Prismic <contact@prismic.io> (https://prismic.io)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       https://apache.ac.cn/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
作者
  • angeloashmore
    angeloashmore
适用于
    Preact
    React
标签