mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:52:07 +08:00
23 lines
407 B
Plaintext
23 lines
407 B
Plaintext
```ts
|
|
// List.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
|
|
import List from './ListComponent.vue';
|
|
|
|
const meta = {
|
|
component: List,
|
|
} satisfies Meta<typeof List>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
// Always an empty list, not super interesting
|
|
export const Empty: Story = {
|
|
render: () => ({
|
|
components: { List },
|
|
template: '<List/>',
|
|
}),
|
|
};
|
|
```
|