Tom Coleman 225c4be4ac Revert "add scancode file and fix declared type for channel"
This reverts commit 9cab57050542c379ea42b29aeab4e46c5746adb9.
2019-01-10 12:29:19 +11:00
..
2019-01-09 18:48:10 +08:00
2018-12-10 14:18:37 +01:00

Storybook Addon Notes

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

Framework Support

Storybook Addon Notes Demo

Getting Started

NOTE: Documentation on master branch is for alpha version, stable release is on master

yarn add -D @storybook/addon-notes

Then create a file called addons.js in your storybook config.

Add following content to it:

import '@storybook/addon-notes/register';

You can use the notes parameter to add a note to each story:

import { storiesOf } from '@storybook/react';

import Component from './Component';

storiesOf('Component', module)
  .add('with some emoji', () => <Component />, {
    notes: 'A very simple example of addon notes',
  });

Using Markdown

To use markdown in your notes is supported, storybook will load markdown as raw by default.

import { storiesOf } from '@storybook/react';
import Component from './Component';
import notes from './someMarkdownText.md';

storiesOf('Component', module)
  .add('With Markdown', () => <Component />, { notes });