storysource

1.0.1 • Public • Published

Storybook Addon Source

Storybook Source Addon can be used to show story source inside the preview.

Installation

npm i -D storysource

Configuration

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

Add following content to it:

import 'storysource/register';

Usage

You can add the source to all stories with withSource in .storybook/config.js:

import { withSource } from 'storysource';

addDecorator(withSource);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    9
  • 1.0.0
    0

Package Sidebar

Install

npm i storysource

Weekly Downloads

9

Version

1.0.1

License

MIT

Unpacked Size

48.2 kB

Total Files

11

Last publish

Collaborators

  • vpaulo