storybook/docs/snippets/common/button-story-hoisted.js.mdx
2021-02-15 11:00:13 +08:00

14 lines
340 B
Plaintext

```js
// Button.stories.js | Button.stories.ts
import { Button as ButtonComponent } from './Button';
export default {
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 = (args) => <ButtonComponent {...args} />;
```