How to use the @storybook/addon-storysource.withStorySource function in @storybook/addon-storysource

To help you get started, we’ve selected a few @storybook/addon-storysource examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strapi / buffet / buffet / stories / Combined / Table.stories.js View on Github external
email: 'jim@strapi.io',
    id: 2,
    provider: 'local',
    username: 'jimminy',
  },
];

function Example() {
  return (
    
  );
}
`;

storiesOf('Custom|Table', module)
  .addDecorator(withStorySource(source))
  .add('Simple', () => );
<table rows="{rows}" headers="{headers}"></table>

@storybook/addon-storysource

View a story’s source code to see how it works and paste into your app

MIT
Latest version published 8 days ago

Package Health Score

98 / 100
Full package analysis

Popular @storybook/addon-storysource functions