storybook/docs/snippets/common/other-foo-bar-story.js.mdx
2023-01-19 17:44:21 +00:00

20 lines
399 B
Plaintext

```js
// FooBar.stories.js|jsx
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',
};
```