mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:41:58 +08:00
17 lines
477 B
Plaintext
17 lines
477 B
Plaintext
```js
|
|
// Button.stories.js|jsx|ts|tsx
|
|
|
|
import { Button as ButtonComponent } from './Button';
|
|
|
|
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: 'Design System/Atoms/Button',
|
|
component: ButtonComponent,
|
|
};
|
|
|
|
// This is the only named export in the file, and it matches the component name
|
|
export const Button = { };
|
|
``` |