mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
17 lines
352 B
Plaintext
17 lines
352 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta, Storybook } from '@storybook/your-framework';
|
|
|
|
const meta: Meta = {
|
|
title: 'Design System/Atoms/Button',
|
|
component: 'demo-component',
|
|
};
|
|
export default meta;
|
|
|
|
type Story = StoryObj;
|
|
|
|
// This is the only named export in the file, and it matches the component name
|
|
export const Button: Story = {};
|
|
```
|