mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:21:57 +08:00
19 lines
279 B
Plaintext
19 lines
279 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
component: 'demo-button',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj;
|
|
|
|
export const WithLayout: Story = {
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
};
|
|
```
|