Back to integrations
Add your integration
  • ⭐️ Popular
  • 🧩 Essentials
  • 🛠 Code
  • ⚡️ Data & state
  • ✅ Test
  • 💅 Style
  • 🎨 Design
  • ⚙️ Appearance
  • 🗄 Organize
How to install addons Create an addon
Storybook addon to view your component source.
npm install storybook-code-view
Last updated about 5 years ago
Downloads per week
Readme View on GitHub

Storybook Addon: Component source

Storybook Addon Component source allows you to view your component template in storybook addon panel.

Framework Support : Vue, React(Coming soon...)

Storybook Addon Notes Demo

Getting Started

yarn add -D component-source

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

Add following content to it:

// register the notes addon as a tab
import 'component-source/register';

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


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

import MyButton from '../src/components/MyButton.vue';

storiesOf('MyButton', module).add(
  'with some emoji',
  () => ({
    components: { MyButton },
    template: '<my-button>😀 😎 👍 💯</my-button>',
      source: {
        // Note: Path should be start from /src/ and must be end with file extension
Join the community
6,609 developers and counting
WhyWhy StorybookComponent-driven UI
CommunityAddonsGet involvedBlog
ShowcaseExploreProjectsComponent glossary
Open source software

Maintained by
Special thanks to Netlify and CircleCI