mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
22 lines
321 B
Plaintext
22 lines
321 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 Basic: Story = {
|
|
parameters: {
|
|
docs: {
|
|
story: { autoplay: true },
|
|
},
|
|
},
|
|
};
|
|
```
|