mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
18 lines
278 B
Plaintext
18 lines
278 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
title: 'Button',
|
|
component: 'demo-button',
|
|
};
|
|
export default meta;
|
|
|
|
type Story = StoryObj;
|
|
|
|
export const Primary: Story = {
|
|
name: 'I am the primary',
|
|
};
|
|
```
|