How to use @storybook/addon-storysource - 1 common examples

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 (
    <Table headers={headers} rows={rows} />
  );
}
`;

storiesOf('Custom|Table', module)
  .addDecorator(withStorySource(source))
  .add('Simple', () => <TableStory />);

@storybook/addon-storysource

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

MIT
Latest version published 3 days ago

Package Health Score

98 / 100
Full package analysis

Popular @storybook/addon-storysource functions