@alisowski/storybook-addon-notes

中文文档
6.0.1发布于 2020/09/05MIT近 30 天下载 3437

Write notes for your Storybook stories.

原始使用文档
文档目录4 节
  1. Getting Started
  2. Upgrading to CSF Format
  3. Using Markdown
  4. Multiple Notes Sections

@alisowski/storybook-addon-notes

NOTE: Storybook deprecated this plugin in favor of addon-docs. While that plugin is useful this plugin solves different problems.

Storybook Addon Notes allows you to write notes (text or HTML) for your stories in Storybook.

Framework Support

Storybook Addon Notes Demo

Getting Started

yarn add -D @alisowski/storybook-addon-notes

within .storybook/main.js:

module.exports = {
  addons: ["@alisowski/storybook-addon-notes/register"],
};

Alternatively register the notes addon into a panel. Choose only one, not both.

module.exports = {
  addons: ["@alisowski/storybook-addon-notes/register-panel"],
};

Now, you can use the notes parameter to add a note to each story.

import Component from "./Component";

export default {
  title: "Component",
  parameters: {
    notes: "some documentation here",
  },
};

Upgrading to CSF Format

Add notes to the parameters object:

export default {
  parameters: {
    notes: "My notes",
  },
};

Using Markdown

Using Markdown in your notes is supported, Storybook will load Markdown as raw by default.

import Component from "./Component";
import markdown from "./someMarkdownText.md";

export default {
  title: "Component",
};

export const withMarkdown = () => <Component />;
withmarkdown.story = {
  parameters: {
    notes: { markdown },
  },
};

Multiple Notes Sections

If you need to display different notes for different consumers of your storybook (e.g design, developers), you can configure multiple notes pages. The following will render a tab with unique notes for both Introduction and Design.

import { storiesOf } from "@storybook/react";
import Component from "./Component";

import intro from "./intro.md";
import design from "./design.md";

export default {
  title: "Component",
  parameters: {
    notes: { Introduction: intro, "Design Notes": design },
  },
};

版本与发布记录

@alisowski/storybook-addon-notes 共发布 1 个版本,首次发布于 2020/09/05;过去 12 个月发布了 0 个版本。

版本发布日期距今
6.0.1latest2020/09/056 年前

关于 @alisowski/storybook-addon-notes 的常见问题

@alisowski/storybook-addon-notes 是什么?

Write notes for your Storybook stories.

如何安装 @alisowski/storybook-addon-notes?

在项目目录运行 npm install @alisowski/storybook-addon-notes,或使用 pnpm add / yarn add / bun add。

@alisowski/storybook-addon-notes 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/alisowski__storybook-addon-notes 是否存在。

@alisowski/storybook-addon-notes 可以商用吗?

@alisowski/storybook-addon-notes 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@alisowski/storybook-addon-notes 的下载量有多少?

根据 npm 官方下载统计,@alisowski/storybook-addon-notes 在 2026/10/06 – 2026/11/04 这 30 天内被下载 3,437 次,日均约 115 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@alisowski/storybook-addon-notes 还在维护吗?

最新版本 6.0.1 发布于 2020/09/05(6 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/09/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。