fbredius/storybook

View on GitHub
docs/snippets/common/other-foo-bar-story.js.mdx

Summary

Maintainability
Test Coverage
```js
// FooBar.stories.js|jsx|ts|tsx

import { Foo } from './Foo';

export default {
  /* 👇 The title prop is optional.
  * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
  * to learn how to generate automatic titles
  */
  title: 'OtherFoo/Bar',
  component: Foo,
  id: 'Foo/Bar', // Or 'foo-bar' if you prefer
};

const BarStory = () => ({
  //👇 Your template goes here
});

export const Baz = () => BarStory.bind({});
Baz.storyName = 'Moo';
```