mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 08:01:54 +08:00
20 lines
355 B
Plaintext
20 lines
355 B
Plaintext
```ts
|
|
// components/MyComponent/MyComponent.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
component: 'my-component',
|
|
title: 'components/MyComponent/MyComponent',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
something: 'Something else',
|
|
},
|
|
};
|
|
```
|