Skip to content

vpaulo/storySource

Repository files navigation

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);

About

Storybook addon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •