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
28 lines
431 B
Plaintext
28 lines
431 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 = {
|
|
args: {
|
|
primary: true,
|
|
label: 'Button',
|
|
},
|
|
};
|
|
|
|
export const PrimaryLongName: Story = {
|
|
args: {
|
|
...Primary.args,
|
|
label: 'Primary with a really long name',
|
|
},
|
|
};
|
|
```
|