storybook/docs/snippets/common/other-foo-bar-story.js.mdx
2022-11-17 16:33:22 +01:00

20 lines
406 B
Plaintext

```js
// FooBar.stories.js|jsx|ts|tsx
import { Foo } from './Foo';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/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
};
export const Baz = {
name: 'Moo',
};
```