mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:31:49 +08:00
20 lines
399 B
Plaintext
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',
|
|
};
|
|
```
|