mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
13 lines
306 B
Plaintext
13 lines
306 B
Plaintext
```js
|
|
// Button.stories.js | Button.stories.jsx | Button.stories.ts | Button.stories.tsx
|
|
|
|
import { Button as ButtonComponent } from './Button';
|
|
|
|
export default {
|
|
component: ButtonComponent,
|
|
};
|
|
|
|
// This is the only named export in the file, and it matches the component name
|
|
export const Button = {};
|
|
```
|